create-v-kit-spa 0.9.6 → 0.9.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -9
- package/lib/159/Still Under Development Thank you.txt +0 -0
- package/lib/161/.editorconfig +18 -0
- package/lib/161/.env.example +58 -0
- package/lib/161/.gitattributes +11 -0
- package/lib/161/README.md +66 -0
- package/lib/161/app/Console/Kernel.php +27 -0
- package/lib/161/app/Exceptions/Handler.php +48 -0
- package/lib/161/app/Http/Controllers/Controller.php +12 -0
- package/lib/161/app/Http/Controllers/MainController.php +12 -0
- package/lib/161/app/Http/Kernel.php +67 -0
- package/lib/161/app/Http/Middleware/Authenticate.php +17 -0
- package/lib/161/app/Http/Middleware/EncryptCookies.php +17 -0
- package/lib/161/app/Http/Middleware/PreventRequestsDuringMaintenance.php +17 -0
- package/lib/161/app/Http/Middleware/RedirectIfAuthenticated.php +30 -0
- package/lib/161/app/Http/Middleware/TrimStrings.php +19 -0
- package/lib/161/app/Http/Middleware/TrustHosts.php +20 -0
- package/lib/161/app/Http/Middleware/TrustProxies.php +28 -0
- package/lib/161/app/Http/Middleware/ValidateSignature.php +22 -0
- package/lib/161/app/Http/Middleware/VerifyCsrfToken.php +17 -0
- package/lib/161/app/Models/User.php +44 -0
- package/lib/161/app/Providers/AppServiceProvider.php +24 -0
- package/lib/161/app/Providers/AuthServiceProvider.php +28 -0
- package/lib/161/app/Providers/BroadcastServiceProvider.php +19 -0
- package/lib/161/app/Providers/EventServiceProvider.php +38 -0
- package/lib/161/app/Providers/RouteServiceProvider.php +48 -0
- package/lib/161/artisan +53 -0
- package/lib/161/bootstrap/app.php +55 -0
- package/lib/161/bootstrap/cache/.gitignore +2 -0
- package/lib/161/composer.json +68 -0
- package/lib/161/composer.lock +8129 -0
- package/lib/161/config/app.php +215 -0
- package/lib/161/config/auth.php +115 -0
- package/lib/161/config/broadcasting.php +70 -0
- package/lib/161/config/cache.php +110 -0
- package/lib/161/config/cors.php +34 -0
- package/lib/161/config/database.php +151 -0
- package/lib/161/config/filesystems.php +76 -0
- package/lib/161/config/hashing.php +52 -0
- package/lib/161/config/logging.php +122 -0
- package/lib/161/config/mail.php +124 -0
- package/lib/161/config/queue.php +93 -0
- package/lib/161/config/sanctum.php +67 -0
- package/lib/161/config/services.php +34 -0
- package/lib/161/config/session.php +201 -0
- package/lib/161/config/view.php +36 -0
- package/lib/161/database/factories/UserFactory.php +40 -0
- package/lib/161/database/migrations/2014_10_12_000000_create_users_table.php +32 -0
- package/lib/161/database/migrations/2014_10_12_100000_create_password_reset_tokens_table.php +28 -0
- package/lib/161/database/migrations/2019_08_19_000000_create_failed_jobs_table.php +32 -0
- package/lib/161/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php +33 -0
- package/lib/161/database/seeders/DatabaseSeeder.php +22 -0
- package/lib/161/package.json +22 -0
- package/lib/161/phpunit.xml +31 -0
- package/lib/161/public/.htaccess +21 -0
- package/lib/161/public/favicon.ico +0 -0
- package/lib/161/public/index.php +55 -0
- package/lib/161/public/robots.txt +2 -0
- package/lib/161/resources/css/app.css +0 -0
- package/lib/161/resources/js/app.js +29 -0
- package/lib/161/resources/js/bootstrap.js +32 -0
- package/lib/161/resources/js/components/pages/About.vue +5 -0
- package/lib/161/resources/js/components/pages/Error.vue +5 -0
- package/lib/161/resources/js/components/pages/Home.vue +21 -0
- package/lib/161/resources/js/components/templates/App.vue +86 -0
- package/lib/161/resources/js/mainStore.js +20 -0
- package/lib/161/resources/js/router.js +40 -0
- package/lib/161/resources/views/layouts/app.blade.php +14 -0
- package/lib/161/resources/views/welcome.blade.php +140 -0
- package/lib/161/routes/api.php +19 -0
- package/lib/161/routes/channels.php +18 -0
- package/lib/161/routes/console.php +19 -0
- package/lib/161/routes/web.php +20 -0
- package/lib/161/storage/framework/sessions/pZVIGWLA97WqxtDY2GXSj4Z0biGFAD4MwRDJU1P6 +1 -0
- package/lib/161/storage/framework/views/2e9971bec8a529e679b1529e9584647f.php +14 -0
- package/lib/161/tests/CreatesApplication.php +21 -0
- package/lib/161/tests/Feature/ExampleTest.php +19 -0
- package/lib/161/tests/TestCase.php +10 -0
- package/lib/161/tests/Unit/ExampleTest.php +16 -0
- package/lib/161/vite.config.js +10 -0
- package/lib/162/.editorconfig +18 -0
- package/lib/162/.env.example +64 -0
- package/lib/162/.gitattributes +11 -0
- package/lib/162/README.md +66 -0
- package/lib/162/app/Http/Controllers/Controller.php +8 -0
- package/lib/162/app/Http/Controllers/MainController.php +12 -0
- package/lib/162/app/Models/User.php +47 -0
- package/lib/162/app/Providers/AppServiceProvider.php +24 -0
- package/lib/162/artisan +15 -0
- package/lib/162/bootstrap/app.php +18 -0
- package/lib/162/bootstrap/cache/.gitignore +2 -0
- package/lib/162/bootstrap/providers.php +5 -0
- package/lib/162/composer.json +65 -0
- package/lib/162/composer.lock +7763 -0
- package/lib/162/config/app.php +126 -0
- package/lib/162/config/auth.php +115 -0
- package/lib/162/config/cache.php +108 -0
- package/lib/162/config/database.php +173 -0
- package/lib/162/config/filesystems.php +77 -0
- package/lib/162/config/logging.php +132 -0
- package/lib/162/config/mail.php +116 -0
- package/lib/162/config/queue.php +112 -0
- package/lib/162/config/services.php +38 -0
- package/lib/162/config/session.php +217 -0
- package/lib/162/database/database.sqlite +0 -0
- package/lib/162/database/factories/UserFactory.php +44 -0
- package/lib/162/database/migrations/0001_01_01_000000_create_users_table.php +49 -0
- package/lib/162/database/migrations/0001_01_01_000001_create_cache_table.php +35 -0
- package/lib/162/database/migrations/0001_01_01_000002_create_jobs_table.php +57 -0
- package/lib/162/database/seeders/DatabaseSeeder.php +23 -0
- package/lib/162/package.json +13 -0
- package/lib/162/phpunit.xml +33 -0
- package/lib/162/public/.htaccess +21 -0
- package/lib/162/public/favicon.ico +0 -0
- package/lib/162/public/index.php +17 -0
- package/lib/162/public/robots.txt +2 -0
- package/lib/162/resources/css/app.css +0 -0
- package/lib/162/resources/js/app.js +29 -0
- package/lib/162/resources/js/bootstrap.js +4 -0
- package/lib/162/resources/js/components/pages/About.vue +5 -0
- package/lib/162/resources/js/components/pages/Error.vue +5 -0
- package/lib/162/resources/js/components/pages/Home.vue +21 -0
- package/lib/162/resources/js/components/templates/App.vue +86 -0
- package/lib/162/resources/js/mainStore.js +20 -0
- package/lib/162/resources/js/router.js +40 -0
- package/lib/162/resources/views/layouts/app.blade.php +14 -0
- package/lib/162/resources/views/welcome.blade.php +172 -0
- package/lib/162/routes/console.php +8 -0
- package/lib/162/routes/web.php +6 -0
- package/lib/162/tests/Feature/ExampleTest.php +19 -0
- package/lib/162/tests/TestCase.php +10 -0
- package/lib/162/tests/Unit/ExampleTest.php +16 -0
- package/lib/162/vite.config.js +13 -0
- package/package.json +1 -1
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
use Monolog\Handler\NullHandler;
|
|
4
|
+
use Monolog\Handler\StreamHandler;
|
|
5
|
+
use Monolog\Handler\SyslogUdpHandler;
|
|
6
|
+
use Monolog\Processor\PsrLogMessageProcessor;
|
|
7
|
+
|
|
8
|
+
return [
|
|
9
|
+
|
|
10
|
+
/*
|
|
11
|
+
|--------------------------------------------------------------------------
|
|
12
|
+
| Default Log Channel
|
|
13
|
+
|--------------------------------------------------------------------------
|
|
14
|
+
|
|
|
15
|
+
| This option defines the default log channel that is utilized to write
|
|
16
|
+
| messages to your logs. The value provided here should match one of
|
|
17
|
+
| the channels present in the list of "channels" configured below.
|
|
18
|
+
|
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
'default' => env('LOG_CHANNEL', 'stack'),
|
|
22
|
+
|
|
23
|
+
/*
|
|
24
|
+
|--------------------------------------------------------------------------
|
|
25
|
+
| Deprecations Log Channel
|
|
26
|
+
|--------------------------------------------------------------------------
|
|
27
|
+
|
|
|
28
|
+
| This option controls the log channel that should be used to log warnings
|
|
29
|
+
| regarding deprecated PHP and library features. This allows you to get
|
|
30
|
+
| your application ready for upcoming major versions of dependencies.
|
|
31
|
+
|
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
'deprecations' => [
|
|
35
|
+
'channel' => env('LOG_DEPRECATIONS_CHANNEL', 'null'),
|
|
36
|
+
'trace' => env('LOG_DEPRECATIONS_TRACE', false),
|
|
37
|
+
],
|
|
38
|
+
|
|
39
|
+
/*
|
|
40
|
+
|--------------------------------------------------------------------------
|
|
41
|
+
| Log Channels
|
|
42
|
+
|--------------------------------------------------------------------------
|
|
43
|
+
|
|
|
44
|
+
| Here you may configure the log channels for your application. Laravel
|
|
45
|
+
| utilizes the Monolog PHP logging library, which includes a variety
|
|
46
|
+
| of powerful log handlers and formatters that you're free to use.
|
|
47
|
+
|
|
|
48
|
+
| Available drivers: "single", "daily", "slack", "syslog",
|
|
49
|
+
| "errorlog", "monolog", "custom", "stack"
|
|
50
|
+
|
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
'channels' => [
|
|
54
|
+
|
|
55
|
+
'stack' => [
|
|
56
|
+
'driver' => 'stack',
|
|
57
|
+
'channels' => explode(',', env('LOG_STACK', 'single')),
|
|
58
|
+
'ignore_exceptions' => false,
|
|
59
|
+
],
|
|
60
|
+
|
|
61
|
+
'single' => [
|
|
62
|
+
'driver' => 'single',
|
|
63
|
+
'path' => storage_path('logs/laravel.log'),
|
|
64
|
+
'level' => env('LOG_LEVEL', 'debug'),
|
|
65
|
+
'replace_placeholders' => true,
|
|
66
|
+
],
|
|
67
|
+
|
|
68
|
+
'daily' => [
|
|
69
|
+
'driver' => 'daily',
|
|
70
|
+
'path' => storage_path('logs/laravel.log'),
|
|
71
|
+
'level' => env('LOG_LEVEL', 'debug'),
|
|
72
|
+
'days' => env('LOG_DAILY_DAYS', 14),
|
|
73
|
+
'replace_placeholders' => true,
|
|
74
|
+
],
|
|
75
|
+
|
|
76
|
+
'slack' => [
|
|
77
|
+
'driver' => 'slack',
|
|
78
|
+
'url' => env('LOG_SLACK_WEBHOOK_URL'),
|
|
79
|
+
'username' => env('LOG_SLACK_USERNAME', 'Laravel Log'),
|
|
80
|
+
'emoji' => env('LOG_SLACK_EMOJI', ':boom:'),
|
|
81
|
+
'level' => env('LOG_LEVEL', 'critical'),
|
|
82
|
+
'replace_placeholders' => true,
|
|
83
|
+
],
|
|
84
|
+
|
|
85
|
+
'papertrail' => [
|
|
86
|
+
'driver' => 'monolog',
|
|
87
|
+
'level' => env('LOG_LEVEL', 'debug'),
|
|
88
|
+
'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class),
|
|
89
|
+
'handler_with' => [
|
|
90
|
+
'host' => env('PAPERTRAIL_URL'),
|
|
91
|
+
'port' => env('PAPERTRAIL_PORT'),
|
|
92
|
+
'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'),
|
|
93
|
+
],
|
|
94
|
+
'processors' => [PsrLogMessageProcessor::class],
|
|
95
|
+
],
|
|
96
|
+
|
|
97
|
+
'stderr' => [
|
|
98
|
+
'driver' => 'monolog',
|
|
99
|
+
'level' => env('LOG_LEVEL', 'debug'),
|
|
100
|
+
'handler' => StreamHandler::class,
|
|
101
|
+
'formatter' => env('LOG_STDERR_FORMATTER'),
|
|
102
|
+
'with' => [
|
|
103
|
+
'stream' => 'php://stderr',
|
|
104
|
+
],
|
|
105
|
+
'processors' => [PsrLogMessageProcessor::class],
|
|
106
|
+
],
|
|
107
|
+
|
|
108
|
+
'syslog' => [
|
|
109
|
+
'driver' => 'syslog',
|
|
110
|
+
'level' => env('LOG_LEVEL', 'debug'),
|
|
111
|
+
'facility' => env('LOG_SYSLOG_FACILITY', LOG_USER),
|
|
112
|
+
'replace_placeholders' => true,
|
|
113
|
+
],
|
|
114
|
+
|
|
115
|
+
'errorlog' => [
|
|
116
|
+
'driver' => 'errorlog',
|
|
117
|
+
'level' => env('LOG_LEVEL', 'debug'),
|
|
118
|
+
'replace_placeholders' => true,
|
|
119
|
+
],
|
|
120
|
+
|
|
121
|
+
'null' => [
|
|
122
|
+
'driver' => 'monolog',
|
|
123
|
+
'handler' => NullHandler::class,
|
|
124
|
+
],
|
|
125
|
+
|
|
126
|
+
'emergency' => [
|
|
127
|
+
'path' => storage_path('logs/laravel.log'),
|
|
128
|
+
],
|
|
129
|
+
|
|
130
|
+
],
|
|
131
|
+
|
|
132
|
+
];
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
return [
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
|--------------------------------------------------------------------------
|
|
7
|
+
| Default Mailer
|
|
8
|
+
|--------------------------------------------------------------------------
|
|
9
|
+
|
|
|
10
|
+
| This option controls the default mailer that is used to send all email
|
|
11
|
+
| messages unless another mailer is explicitly specified when sending
|
|
12
|
+
| the message. All additional mailers can be configured within the
|
|
13
|
+
| "mailers" array. Examples of each type of mailer are provided.
|
|
14
|
+
|
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
'default' => env('MAIL_MAILER', 'log'),
|
|
18
|
+
|
|
19
|
+
/*
|
|
20
|
+
|--------------------------------------------------------------------------
|
|
21
|
+
| Mailer Configurations
|
|
22
|
+
|--------------------------------------------------------------------------
|
|
23
|
+
|
|
|
24
|
+
| Here you may configure all of the mailers used by your application plus
|
|
25
|
+
| their respective settings. Several examples have been configured for
|
|
26
|
+
| you and you are free to add your own as your application requires.
|
|
27
|
+
|
|
|
28
|
+
| Laravel supports a variety of mail "transport" drivers that can be used
|
|
29
|
+
| when delivering an email. You may specify which one you're using for
|
|
30
|
+
| your mailers below. You may also add additional mailers if needed.
|
|
31
|
+
|
|
|
32
|
+
| Supported: "smtp", "sendmail", "mailgun", "ses", "ses-v2",
|
|
33
|
+
| "postmark", "resend", "log", "array",
|
|
34
|
+
| "failover", "roundrobin"
|
|
35
|
+
|
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
'mailers' => [
|
|
39
|
+
|
|
40
|
+
'smtp' => [
|
|
41
|
+
'transport' => 'smtp',
|
|
42
|
+
'url' => env('MAIL_URL'),
|
|
43
|
+
'host' => env('MAIL_HOST', '127.0.0.1'),
|
|
44
|
+
'port' => env('MAIL_PORT', 2525),
|
|
45
|
+
'encryption' => env('MAIL_ENCRYPTION', 'tls'),
|
|
46
|
+
'username' => env('MAIL_USERNAME'),
|
|
47
|
+
'password' => env('MAIL_PASSWORD'),
|
|
48
|
+
'timeout' => null,
|
|
49
|
+
'local_domain' => env('MAIL_EHLO_DOMAIN', parse_url(env('APP_URL', 'http://localhost'), PHP_URL_HOST)),
|
|
50
|
+
],
|
|
51
|
+
|
|
52
|
+
'ses' => [
|
|
53
|
+
'transport' => 'ses',
|
|
54
|
+
],
|
|
55
|
+
|
|
56
|
+
'postmark' => [
|
|
57
|
+
'transport' => 'postmark',
|
|
58
|
+
// 'message_stream_id' => env('POSTMARK_MESSAGE_STREAM_ID'),
|
|
59
|
+
// 'client' => [
|
|
60
|
+
// 'timeout' => 5,
|
|
61
|
+
// ],
|
|
62
|
+
],
|
|
63
|
+
|
|
64
|
+
'resend' => [
|
|
65
|
+
'transport' => 'resend',
|
|
66
|
+
],
|
|
67
|
+
|
|
68
|
+
'sendmail' => [
|
|
69
|
+
'transport' => 'sendmail',
|
|
70
|
+
'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'),
|
|
71
|
+
],
|
|
72
|
+
|
|
73
|
+
'log' => [
|
|
74
|
+
'transport' => 'log',
|
|
75
|
+
'channel' => env('MAIL_LOG_CHANNEL'),
|
|
76
|
+
],
|
|
77
|
+
|
|
78
|
+
'array' => [
|
|
79
|
+
'transport' => 'array',
|
|
80
|
+
],
|
|
81
|
+
|
|
82
|
+
'failover' => [
|
|
83
|
+
'transport' => 'failover',
|
|
84
|
+
'mailers' => [
|
|
85
|
+
'smtp',
|
|
86
|
+
'log',
|
|
87
|
+
],
|
|
88
|
+
],
|
|
89
|
+
|
|
90
|
+
'roundrobin' => [
|
|
91
|
+
'transport' => 'roundrobin',
|
|
92
|
+
'mailers' => [
|
|
93
|
+
'ses',
|
|
94
|
+
'postmark',
|
|
95
|
+
],
|
|
96
|
+
],
|
|
97
|
+
|
|
98
|
+
],
|
|
99
|
+
|
|
100
|
+
/*
|
|
101
|
+
|--------------------------------------------------------------------------
|
|
102
|
+
| Global "From" Address
|
|
103
|
+
|--------------------------------------------------------------------------
|
|
104
|
+
|
|
|
105
|
+
| You may wish for all emails sent by your application to be sent from
|
|
106
|
+
| the same address. Here you may specify a name and address that is
|
|
107
|
+
| used globally for all emails that are sent by your application.
|
|
108
|
+
|
|
|
109
|
+
*/
|
|
110
|
+
|
|
111
|
+
'from' => [
|
|
112
|
+
'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
|
|
113
|
+
'name' => env('MAIL_FROM_NAME', 'Example'),
|
|
114
|
+
],
|
|
115
|
+
|
|
116
|
+
];
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
return [
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
|--------------------------------------------------------------------------
|
|
7
|
+
| Default Queue Connection Name
|
|
8
|
+
|--------------------------------------------------------------------------
|
|
9
|
+
|
|
|
10
|
+
| Laravel's queue supports a variety of backends via a single, unified
|
|
11
|
+
| API, giving you convenient access to each backend using identical
|
|
12
|
+
| syntax for each. The default queue connection is defined below.
|
|
13
|
+
|
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
'default' => env('QUEUE_CONNECTION', 'database'),
|
|
17
|
+
|
|
18
|
+
/*
|
|
19
|
+
|--------------------------------------------------------------------------
|
|
20
|
+
| Queue Connections
|
|
21
|
+
|--------------------------------------------------------------------------
|
|
22
|
+
|
|
|
23
|
+
| Here you may configure the connection options for every queue backend
|
|
24
|
+
| used by your application. An example configuration is provided for
|
|
25
|
+
| each backend supported by Laravel. You're also free to add more.
|
|
26
|
+
|
|
|
27
|
+
| Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null"
|
|
28
|
+
|
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
'connections' => [
|
|
32
|
+
|
|
33
|
+
'sync' => [
|
|
34
|
+
'driver' => 'sync',
|
|
35
|
+
],
|
|
36
|
+
|
|
37
|
+
'database' => [
|
|
38
|
+
'driver' => 'database',
|
|
39
|
+
'connection' => env('DB_QUEUE_CONNECTION'),
|
|
40
|
+
'table' => env('DB_QUEUE_TABLE', 'jobs'),
|
|
41
|
+
'queue' => env('DB_QUEUE', 'default'),
|
|
42
|
+
'retry_after' => (int) env('DB_QUEUE_RETRY_AFTER', 90),
|
|
43
|
+
'after_commit' => false,
|
|
44
|
+
],
|
|
45
|
+
|
|
46
|
+
'beanstalkd' => [
|
|
47
|
+
'driver' => 'beanstalkd',
|
|
48
|
+
'host' => env('BEANSTALKD_QUEUE_HOST', 'localhost'),
|
|
49
|
+
'queue' => env('BEANSTALKD_QUEUE', 'default'),
|
|
50
|
+
'retry_after' => (int) env('BEANSTALKD_QUEUE_RETRY_AFTER', 90),
|
|
51
|
+
'block_for' => 0,
|
|
52
|
+
'after_commit' => false,
|
|
53
|
+
],
|
|
54
|
+
|
|
55
|
+
'sqs' => [
|
|
56
|
+
'driver' => 'sqs',
|
|
57
|
+
'key' => env('AWS_ACCESS_KEY_ID'),
|
|
58
|
+
'secret' => env('AWS_SECRET_ACCESS_KEY'),
|
|
59
|
+
'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
|
|
60
|
+
'queue' => env('SQS_QUEUE', 'default'),
|
|
61
|
+
'suffix' => env('SQS_SUFFIX'),
|
|
62
|
+
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
|
|
63
|
+
'after_commit' => false,
|
|
64
|
+
],
|
|
65
|
+
|
|
66
|
+
'redis' => [
|
|
67
|
+
'driver' => 'redis',
|
|
68
|
+
'connection' => env('REDIS_QUEUE_CONNECTION', 'default'),
|
|
69
|
+
'queue' => env('REDIS_QUEUE', 'default'),
|
|
70
|
+
'retry_after' => (int) env('REDIS_QUEUE_RETRY_AFTER', 90),
|
|
71
|
+
'block_for' => null,
|
|
72
|
+
'after_commit' => false,
|
|
73
|
+
],
|
|
74
|
+
|
|
75
|
+
],
|
|
76
|
+
|
|
77
|
+
/*
|
|
78
|
+
|--------------------------------------------------------------------------
|
|
79
|
+
| Job Batching
|
|
80
|
+
|--------------------------------------------------------------------------
|
|
81
|
+
|
|
|
82
|
+
| The following options configure the database and table that store job
|
|
83
|
+
| batching information. These options can be updated to any database
|
|
84
|
+
| connection and table which has been defined by your application.
|
|
85
|
+
|
|
|
86
|
+
*/
|
|
87
|
+
|
|
88
|
+
'batching' => [
|
|
89
|
+
'database' => env('DB_CONNECTION', 'sqlite'),
|
|
90
|
+
'table' => 'job_batches',
|
|
91
|
+
],
|
|
92
|
+
|
|
93
|
+
/*
|
|
94
|
+
|--------------------------------------------------------------------------
|
|
95
|
+
| Failed Queue Jobs
|
|
96
|
+
|--------------------------------------------------------------------------
|
|
97
|
+
|
|
|
98
|
+
| These options configure the behavior of failed queue job logging so you
|
|
99
|
+
| can control how and where failed jobs are stored. Laravel ships with
|
|
100
|
+
| support for storing failed jobs in a simple file or in a database.
|
|
101
|
+
|
|
|
102
|
+
| Supported drivers: "database-uuids", "dynamodb", "file", "null"
|
|
103
|
+
|
|
|
104
|
+
*/
|
|
105
|
+
|
|
106
|
+
'failed' => [
|
|
107
|
+
'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'),
|
|
108
|
+
'database' => env('DB_CONNECTION', 'sqlite'),
|
|
109
|
+
'table' => 'failed_jobs',
|
|
110
|
+
],
|
|
111
|
+
|
|
112
|
+
];
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
return [
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
|--------------------------------------------------------------------------
|
|
7
|
+
| Third Party Services
|
|
8
|
+
|--------------------------------------------------------------------------
|
|
9
|
+
|
|
|
10
|
+
| This file is for storing the credentials for third party services such
|
|
11
|
+
| as Mailgun, Postmark, AWS and more. This file provides the de facto
|
|
12
|
+
| location for this type of information, allowing packages to have
|
|
13
|
+
| a conventional file to locate the various service credentials.
|
|
14
|
+
|
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
'postmark' => [
|
|
18
|
+
'token' => env('POSTMARK_TOKEN'),
|
|
19
|
+
],
|
|
20
|
+
|
|
21
|
+
'ses' => [
|
|
22
|
+
'key' => env('AWS_ACCESS_KEY_ID'),
|
|
23
|
+
'secret' => env('AWS_SECRET_ACCESS_KEY'),
|
|
24
|
+
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
|
|
25
|
+
],
|
|
26
|
+
|
|
27
|
+
'resend' => [
|
|
28
|
+
'key' => env('RESEND_KEY'),
|
|
29
|
+
],
|
|
30
|
+
|
|
31
|
+
'slack' => [
|
|
32
|
+
'notifications' => [
|
|
33
|
+
'bot_user_oauth_token' => env('SLACK_BOT_USER_OAUTH_TOKEN'),
|
|
34
|
+
'channel' => env('SLACK_BOT_USER_DEFAULT_CHANNEL'),
|
|
35
|
+
],
|
|
36
|
+
],
|
|
37
|
+
|
|
38
|
+
];
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
use Illuminate\Support\Str;
|
|
4
|
+
|
|
5
|
+
return [
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
|--------------------------------------------------------------------------
|
|
9
|
+
| Default Session Driver
|
|
10
|
+
|--------------------------------------------------------------------------
|
|
11
|
+
|
|
|
12
|
+
| This option determines the default session driver that is utilized for
|
|
13
|
+
| incoming requests. Laravel supports a variety of storage options to
|
|
14
|
+
| persist session data. Database storage is a great default choice.
|
|
15
|
+
|
|
|
16
|
+
| Supported: "file", "cookie", "database", "apc",
|
|
17
|
+
| "memcached", "redis", "dynamodb", "array"
|
|
18
|
+
|
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
'driver' => env('SESSION_DRIVER', 'database'),
|
|
22
|
+
|
|
23
|
+
/*
|
|
24
|
+
|--------------------------------------------------------------------------
|
|
25
|
+
| Session Lifetime
|
|
26
|
+
|--------------------------------------------------------------------------
|
|
27
|
+
|
|
|
28
|
+
| Here you may specify the number of minutes that you wish the session
|
|
29
|
+
| to be allowed to remain idle before it expires. If you want them
|
|
30
|
+
| to expire immediately when the browser is closed then you may
|
|
31
|
+
| indicate that via the expire_on_close configuration option.
|
|
32
|
+
|
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
'lifetime' => env('SESSION_LIFETIME', 120),
|
|
36
|
+
|
|
37
|
+
'expire_on_close' => env('SESSION_EXPIRE_ON_CLOSE', false),
|
|
38
|
+
|
|
39
|
+
/*
|
|
40
|
+
|--------------------------------------------------------------------------
|
|
41
|
+
| Session Encryption
|
|
42
|
+
|--------------------------------------------------------------------------
|
|
43
|
+
|
|
|
44
|
+
| This option allows you to easily specify that all of your session data
|
|
45
|
+
| should be encrypted before it's stored. All encryption is performed
|
|
46
|
+
| automatically by Laravel and you may use the session like normal.
|
|
47
|
+
|
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
'encrypt' => env('SESSION_ENCRYPT', false),
|
|
51
|
+
|
|
52
|
+
/*
|
|
53
|
+
|--------------------------------------------------------------------------
|
|
54
|
+
| Session File Location
|
|
55
|
+
|--------------------------------------------------------------------------
|
|
56
|
+
|
|
|
57
|
+
| When utilizing the "file" session driver, the session files are placed
|
|
58
|
+
| on disk. The default storage location is defined here; however, you
|
|
59
|
+
| are free to provide another location where they should be stored.
|
|
60
|
+
|
|
|
61
|
+
*/
|
|
62
|
+
|
|
63
|
+
'files' => storage_path('framework/sessions'),
|
|
64
|
+
|
|
65
|
+
/*
|
|
66
|
+
|--------------------------------------------------------------------------
|
|
67
|
+
| Session Database Connection
|
|
68
|
+
|--------------------------------------------------------------------------
|
|
69
|
+
|
|
|
70
|
+
| When using the "database" or "redis" session drivers, you may specify a
|
|
71
|
+
| connection that should be used to manage these sessions. This should
|
|
72
|
+
| correspond to a connection in your database configuration options.
|
|
73
|
+
|
|
|
74
|
+
*/
|
|
75
|
+
|
|
76
|
+
'connection' => env('SESSION_CONNECTION'),
|
|
77
|
+
|
|
78
|
+
/*
|
|
79
|
+
|--------------------------------------------------------------------------
|
|
80
|
+
| Session Database Table
|
|
81
|
+
|--------------------------------------------------------------------------
|
|
82
|
+
|
|
|
83
|
+
| When using the "database" session driver, you may specify the table to
|
|
84
|
+
| be used to store sessions. Of course, a sensible default is defined
|
|
85
|
+
| for you; however, you're welcome to change this to another table.
|
|
86
|
+
|
|
|
87
|
+
*/
|
|
88
|
+
|
|
89
|
+
'table' => env('SESSION_TABLE', 'sessions'),
|
|
90
|
+
|
|
91
|
+
/*
|
|
92
|
+
|--------------------------------------------------------------------------
|
|
93
|
+
| Session Cache Store
|
|
94
|
+
|--------------------------------------------------------------------------
|
|
95
|
+
|
|
|
96
|
+
| When using one of the framework's cache driven session backends, you may
|
|
97
|
+
| define the cache store which should be used to store the session data
|
|
98
|
+
| between requests. This must match one of your defined cache stores.
|
|
99
|
+
|
|
|
100
|
+
| Affects: "apc", "dynamodb", "memcached", "redis"
|
|
101
|
+
|
|
|
102
|
+
*/
|
|
103
|
+
|
|
104
|
+
'store' => env('SESSION_STORE'),
|
|
105
|
+
|
|
106
|
+
/*
|
|
107
|
+
|--------------------------------------------------------------------------
|
|
108
|
+
| Session Sweeping Lottery
|
|
109
|
+
|--------------------------------------------------------------------------
|
|
110
|
+
|
|
|
111
|
+
| Some session drivers must manually sweep their storage location to get
|
|
112
|
+
| rid of old sessions from storage. Here are the chances that it will
|
|
113
|
+
| happen on a given request. By default, the odds are 2 out of 100.
|
|
114
|
+
|
|
|
115
|
+
*/
|
|
116
|
+
|
|
117
|
+
'lottery' => [2, 100],
|
|
118
|
+
|
|
119
|
+
/*
|
|
120
|
+
|--------------------------------------------------------------------------
|
|
121
|
+
| Session Cookie Name
|
|
122
|
+
|--------------------------------------------------------------------------
|
|
123
|
+
|
|
|
124
|
+
| Here you may change the name of the session cookie that is created by
|
|
125
|
+
| the framework. Typically, you should not need to change this value
|
|
126
|
+
| since doing so does not grant a meaningful security improvement.
|
|
127
|
+
|
|
|
128
|
+
*/
|
|
129
|
+
|
|
130
|
+
'cookie' => env(
|
|
131
|
+
'SESSION_COOKIE',
|
|
132
|
+
Str::slug(env('APP_NAME', 'laravel'), '_').'_session'
|
|
133
|
+
),
|
|
134
|
+
|
|
135
|
+
/*
|
|
136
|
+
|--------------------------------------------------------------------------
|
|
137
|
+
| Session Cookie Path
|
|
138
|
+
|--------------------------------------------------------------------------
|
|
139
|
+
|
|
|
140
|
+
| The session cookie path determines the path for which the cookie will
|
|
141
|
+
| be regarded as available. Typically, this will be the root path of
|
|
142
|
+
| your application, but you're free to change this when necessary.
|
|
143
|
+
|
|
|
144
|
+
*/
|
|
145
|
+
|
|
146
|
+
'path' => env('SESSION_PATH', '/'),
|
|
147
|
+
|
|
148
|
+
/*
|
|
149
|
+
|--------------------------------------------------------------------------
|
|
150
|
+
| Session Cookie Domain
|
|
151
|
+
|--------------------------------------------------------------------------
|
|
152
|
+
|
|
|
153
|
+
| This value determines the domain and subdomains the session cookie is
|
|
154
|
+
| available to. By default, the cookie will be available to the root
|
|
155
|
+
| domain and all subdomains. Typically, this shouldn't be changed.
|
|
156
|
+
|
|
|
157
|
+
*/
|
|
158
|
+
|
|
159
|
+
'domain' => env('SESSION_DOMAIN'),
|
|
160
|
+
|
|
161
|
+
/*
|
|
162
|
+
|--------------------------------------------------------------------------
|
|
163
|
+
| HTTPS Only Cookies
|
|
164
|
+
|--------------------------------------------------------------------------
|
|
165
|
+
|
|
|
166
|
+
| By setting this option to true, session cookies will only be sent back
|
|
167
|
+
| to the server if the browser has a HTTPS connection. This will keep
|
|
168
|
+
| the cookie from being sent to you when it can't be done securely.
|
|
169
|
+
|
|
|
170
|
+
*/
|
|
171
|
+
|
|
172
|
+
'secure' => env('SESSION_SECURE_COOKIE'),
|
|
173
|
+
|
|
174
|
+
/*
|
|
175
|
+
|--------------------------------------------------------------------------
|
|
176
|
+
| HTTP Access Only
|
|
177
|
+
|--------------------------------------------------------------------------
|
|
178
|
+
|
|
|
179
|
+
| Setting this value to true will prevent JavaScript from accessing the
|
|
180
|
+
| value of the cookie and the cookie will only be accessible through
|
|
181
|
+
| the HTTP protocol. It's unlikely you should disable this option.
|
|
182
|
+
|
|
|
183
|
+
*/
|
|
184
|
+
|
|
185
|
+
'http_only' => env('SESSION_HTTP_ONLY', true),
|
|
186
|
+
|
|
187
|
+
/*
|
|
188
|
+
|--------------------------------------------------------------------------
|
|
189
|
+
| Same-Site Cookies
|
|
190
|
+
|--------------------------------------------------------------------------
|
|
191
|
+
|
|
|
192
|
+
| This option determines how your cookies behave when cross-site requests
|
|
193
|
+
| take place, and can be used to mitigate CSRF attacks. By default, we
|
|
194
|
+
| will set this value to "lax" to permit secure cross-site requests.
|
|
195
|
+
|
|
|
196
|
+
| See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#samesitesamesite-value
|
|
197
|
+
|
|
|
198
|
+
| Supported: "lax", "strict", "none", null
|
|
199
|
+
|
|
|
200
|
+
*/
|
|
201
|
+
|
|
202
|
+
'same_site' => env('SESSION_SAME_SITE', 'lax'),
|
|
203
|
+
|
|
204
|
+
/*
|
|
205
|
+
|--------------------------------------------------------------------------
|
|
206
|
+
| Partitioned Cookies
|
|
207
|
+
|--------------------------------------------------------------------------
|
|
208
|
+
|
|
|
209
|
+
| Setting this value to true will tie the cookie to the top-level site for
|
|
210
|
+
| a cross-site context. Partitioned cookies are accepted by the browser
|
|
211
|
+
| when flagged "secure" and the Same-Site attribute is set to "none".
|
|
212
|
+
|
|
|
213
|
+
*/
|
|
214
|
+
|
|
215
|
+
'partitioned' => env('SESSION_PARTITIONED_COOKIE', false),
|
|
216
|
+
|
|
217
|
+
];
|
|
Binary file
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
namespace Database\Factories;
|
|
4
|
+
|
|
5
|
+
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
6
|
+
use Illuminate\Support\Facades\Hash;
|
|
7
|
+
use Illuminate\Support\Str;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\User>
|
|
11
|
+
*/
|
|
12
|
+
class UserFactory extends Factory
|
|
13
|
+
{
|
|
14
|
+
/**
|
|
15
|
+
* The current password being used by the factory.
|
|
16
|
+
*/
|
|
17
|
+
protected static ?string $password;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Define the model's default state.
|
|
21
|
+
*
|
|
22
|
+
* @return array<string, mixed>
|
|
23
|
+
*/
|
|
24
|
+
public function definition(): array
|
|
25
|
+
{
|
|
26
|
+
return [
|
|
27
|
+
'name' => fake()->name(),
|
|
28
|
+
'email' => fake()->unique()->safeEmail(),
|
|
29
|
+
'email_verified_at' => now(),
|
|
30
|
+
'password' => static::$password ??= Hash::make('password'),
|
|
31
|
+
'remember_token' => Str::random(10),
|
|
32
|
+
];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Indicate that the model's email address should be unverified.
|
|
37
|
+
*/
|
|
38
|
+
public function unverified(): static
|
|
39
|
+
{
|
|
40
|
+
return $this->state(fn (array $attributes) => [
|
|
41
|
+
'email_verified_at' => null,
|
|
42
|
+
]);
|
|
43
|
+
}
|
|
44
|
+
}
|