45 |
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/docker-compose.yml:
--------------------------------------------------------------------------------
1 | # For more information: https://laravel.com/docs/sail
2 | version: '3'
3 | services:
4 | laravel.test:
5 | build:
6 | context: ./vendor/laravel/sail/runtimes/8.1
7 | dockerfile: Dockerfile
8 | args:
9 | WWWGROUP: '${WWWGROUP}'
10 | image: sail-8.1/app
11 | extra_hosts:
12 | - 'host.docker.internal:host-gateway'
13 | ports:
14 | - '${APP_PORT:-80}:80'
15 | - ${VITE_PORT:-5173}:${VITE_PORT:-5173}
16 | environment:
17 | WWWUSER: '${WWWUSER}'
18 | LARAVEL_SAIL: 1
19 | XDEBUG_MODE: '${SAIL_XDEBUG_MODE:-off}'
20 | XDEBUG_CONFIG: '${SAIL_XDEBUG_CONFIG:-client_host=host.docker.internal}'
21 | volumes:
22 | - '.:/var/www/html'
23 | networks:
24 | - sail
25 | depends_on:
26 | - mysql
27 | mysql:
28 | image: 'mysql/mysql-server:8.0'
29 | ports:
30 | - '${FORWARD_DB_PORT:-3306}:3306'
31 | environment:
32 | MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
33 | MYSQL_ROOT_HOST: "%"
34 | MYSQL_DATABASE: '${DB_DATABASE}'
35 | MYSQL_USER: '${DB_USERNAME}'
36 | MYSQL_PASSWORD: '${DB_PASSWORD}'
37 | MYSQL_ALLOW_EMPTY_PASSWORD: 1
38 | volumes:
39 | - 'sail-mysql:/var/lib/mysql'
40 | networks:
41 | - sail
42 | healthcheck:
43 | test: ["CMD", "mysqladmin", "ping", "-p${DB_PASSWORD}"]
44 | retries: 3
45 | timeout: 5s
46 | phpmyadmin:
47 | image: phpmyadmin/phpmyadmin
48 | ports:
49 | - 8080:80
50 | networks:
51 | - sail
52 | environment:
53 | MYSQL_USERNAME: '${DB_USERNAME}'
54 | MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
55 | PMA_HOST: mysql
56 | networks:
57 | sail:
58 | driver: bridge
59 | volumes:
60 | sail-mysql:
61 | driver: local
62 |
--------------------------------------------------------------------------------
/config/broadcasting.php:
--------------------------------------------------------------------------------
1 | env('BROADCAST_DRIVER', 'null'),
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | Broadcast Connections
23 | |--------------------------------------------------------------------------
24 | |
25 | | Here you may define all of the broadcast connections that will be used
26 | | to broadcast events to other systems or over websockets. Samples of
27 | | each available type of connection are provided inside this array.
28 | |
29 | */
30 |
31 | 'connections' => [
32 |
33 | 'pusher' => [
34 | 'driver' => 'pusher',
35 | 'key' => env('PUSHER_APP_KEY'),
36 | 'secret' => env('PUSHER_APP_SECRET'),
37 | 'app_id' => env('PUSHER_APP_ID'),
38 | 'options' => [
39 | 'host' => env('PUSHER_HOST', 'api-'.env('PUSHER_APP_CLUSTER', 'mt1').'.pusher.com') ?: 'api-'.env('PUSHER_APP_CLUSTER', 'mt1').'.pusher.com',
40 | 'port' => env('PUSHER_PORT', 443),
41 | 'scheme' => env('PUSHER_SCHEME', 'https'),
42 | 'encrypted' => true,
43 | 'useTLS' => env('PUSHER_SCHEME', 'https') === 'https',
44 | ],
45 | 'client_options' => [
46 | // Guzzle client options: https://docs.guzzlephp.org/en/stable/request-options.html
47 | ],
48 | ],
49 |
50 | 'ably' => [
51 | 'driver' => 'ably',
52 | 'key' => env('ABLY_KEY'),
53 | ],
54 |
55 | 'redis' => [
56 | 'driver' => 'redis',
57 | 'connection' => 'default',
58 | ],
59 |
60 | 'log' => [
61 | 'driver' => 'log',
62 | ],
63 |
64 | 'null' => [
65 | 'driver' => 'null',
66 | ],
67 |
68 | ],
69 |
70 | ];
71 |
--------------------------------------------------------------------------------
/config/sanctum.php:
--------------------------------------------------------------------------------
1 | explode(',', env('SANCTUM_STATEFUL_DOMAINS', sprintf(
19 | '%s%s',
20 | 'localhost,localhost:3000,127.0.0.1,127.0.0.1:8000,::1',
21 | Sanctum::currentApplicationUrlWithPort()
22 | ))),
23 |
24 | /*
25 | |--------------------------------------------------------------------------
26 | | Sanctum Guards
27 | |--------------------------------------------------------------------------
28 | |
29 | | This array contains the authentication guards that will be checked when
30 | | Sanctum is trying to authenticate a request. If none of these guards
31 | | are able to authenticate the request, Sanctum will use the bearer
32 | | token that's present on an incoming request for authentication.
33 | |
34 | */
35 |
36 | 'guard' => ['web'],
37 |
38 | /*
39 | |--------------------------------------------------------------------------
40 | | Expiration Minutes
41 | |--------------------------------------------------------------------------
42 | |
43 | | This value controls the number of minutes until an issued token will be
44 | | considered expired. If this value is null, personal access tokens do
45 | | not expire. This won't tweak the lifetime of first-party sessions.
46 | |
47 | */
48 |
49 | 'expiration' => null,
50 |
51 | /*
52 | |--------------------------------------------------------------------------
53 | | Sanctum Middleware
54 | |--------------------------------------------------------------------------
55 | |
56 | | When authenticating your first-party SPA with Sanctum you may need to
57 | | customize some of the middleware Sanctum uses while processing the
58 | | request. You may change the middleware listed below as required.
59 | |
60 | */
61 |
62 | 'middleware' => [
63 | 'verify_csrf_token' => App\Http\Middleware\VerifyCsrfToken::class,
64 | 'encrypt_cookies' => App\Http\Middleware\EncryptCookies::class,
65 | ],
66 |
67 | ];
68 |
--------------------------------------------------------------------------------
/resources/js/pages/Availibility.vue:
--------------------------------------------------------------------------------
1 |
2 | Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore sed consequuntur error repudiandae numquam deserunt 16 | quisquam repellat libero asperiores earum nam nobis, culpa ratione quam perferendis esse, cupiditate neque quas!
17 | 18 | 19 |
6 |
31 |
32 |