create-v-kit-spa 1.0.7 → 1.0.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.
Files changed (120) hide show
  1. package/README.md +9 -9
  2. package/dist/commands.d.ts +1 -1
  3. package/dist/commands.js +67 -67
  4. package/dist/count.d.ts +2 -2
  5. package/dist/count.js +44 -44
  6. package/dist/index.d.ts +2 -2
  7. package/dist/index.js +3 -3
  8. package/dist/messages.d.ts +2 -2
  9. package/dist/messages.js +69 -69
  10. package/dist/progress.d.ts +1 -1
  11. package/dist/progress.js +37 -37
  12. package/dist/prompts.d.ts +3 -3
  13. package/dist/prompts.js +77 -77
  14. package/dist/utils.d.ts +1 -1
  15. package/dist/utils.js +33 -33
  16. package/dist/version.d.ts +1 -1
  17. package/dist/version.js +20 -20
  18. package/index.d.ts +2 -2
  19. package/lib/158/bootstrap/cache/packages.php +54 -54
  20. package/lib/158/bootstrap/cache/services.php +230 -230
  21. package/lib/158/public/css/app.css +28133 -28133
  22. package/lib/158/public/js/app.js +83979 -83979
  23. package/lib/158/public/mix-manifest.json +3 -3
  24. package/lib/158/storage/framework/views/1ddf75c1b95a4bfcdffdd013ed70c87e04029f74.php +38 -38
  25. package/lib/158/storage/framework/views/7ee0ae105f3a4c476f9d59f2047eb7c745e7d9a5.php +4 -4
  26. package/lib/158/storage/logs/laravel.log +91 -91
  27. package/lib/160/.editorconfig +18 -18
  28. package/lib/160/.env.example +58 -58
  29. package/lib/160/.gitattributes +11 -11
  30. package/lib/160/README.md +66 -66
  31. package/lib/160/app/Console/Kernel.php +32 -32
  32. package/lib/160/app/Exceptions/Handler.php +50 -50
  33. package/lib/160/app/Http/Controllers/Controller.php +13 -13
  34. package/lib/160/app/Http/Controllers/MainController.php +12 -12
  35. package/lib/160/app/Http/Kernel.php +67 -67
  36. package/lib/160/app/Http/Middleware/Authenticate.php +21 -21
  37. package/lib/160/app/Http/Middleware/EncryptCookies.php +17 -17
  38. package/lib/160/app/Http/Middleware/PreventRequestsDuringMaintenance.php +17 -17
  39. package/lib/160/app/Http/Middleware/RedirectIfAuthenticated.php +32 -32
  40. package/lib/160/app/Http/Middleware/TrimStrings.php +19 -19
  41. package/lib/160/app/Http/Middleware/TrustHosts.php +20 -20
  42. package/lib/160/app/Http/Middleware/TrustProxies.php +28 -28
  43. package/lib/160/app/Http/Middleware/ValidateSignature.php +22 -22
  44. package/lib/160/app/Http/Middleware/VerifyCsrfToken.php +17 -17
  45. package/lib/160/app/Models/User.php +44 -44
  46. package/lib/160/app/Providers/AppServiceProvider.php +28 -28
  47. package/lib/160/app/Providers/AuthServiceProvider.php +30 -30
  48. package/lib/160/app/Providers/BroadcastServiceProvider.php +21 -21
  49. package/lib/160/app/Providers/EventServiceProvider.php +42 -42
  50. package/lib/160/app/Providers/RouteServiceProvider.php +52 -52
  51. package/lib/160/artisan +53 -53
  52. package/lib/160/bootstrap/app.php +55 -55
  53. package/lib/160/bootstrap/cache/.gitignore +2 -2
  54. package/lib/160/composer.json +65 -65
  55. package/lib/160/config/app.php +215 -215
  56. package/lib/160/config/auth.php +111 -111
  57. package/lib/160/config/broadcasting.php +70 -70
  58. package/lib/160/config/cache.php +110 -110
  59. package/lib/160/config/cors.php +34 -34
  60. package/lib/160/config/database.php +151 -151
  61. package/lib/160/config/filesystems.php +76 -76
  62. package/lib/160/config/hashing.php +52 -52
  63. package/lib/160/config/logging.php +122 -122
  64. package/lib/160/config/mail.php +118 -118
  65. package/lib/160/config/queue.php +93 -93
  66. package/lib/160/config/sanctum.php +67 -67
  67. package/lib/160/config/services.php +34 -34
  68. package/lib/160/config/session.php +201 -201
  69. package/lib/160/config/view.php +36 -36
  70. package/lib/160/database/factories/UserFactory.php +40 -40
  71. package/lib/160/database/migrations/2014_10_12_000000_create_users_table.php +36 -36
  72. package/lib/160/database/migrations/2014_10_12_100000_create_password_resets_table.php +32 -32
  73. package/lib/160/database/migrations/2019_08_19_000000_create_failed_jobs_table.php +36 -36
  74. package/lib/160/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php +37 -37
  75. package/lib/160/database/seeders/DatabaseSeeder.php +24 -24
  76. package/lib/160/lang/en/auth.php +20 -20
  77. package/lib/160/lang/en/pagination.php +19 -19
  78. package/lib/160/lang/en/passwords.php +22 -22
  79. package/lib/160/lang/en/validation.php +184 -184
  80. package/lib/160/package.json +25 -25
  81. package/lib/160/phpunit.xml +31 -31
  82. package/lib/160/public/.htaccess +21 -21
  83. package/lib/160/public/index.php +55 -55
  84. package/lib/160/public/robots.txt +2 -2
  85. package/lib/160/resources/js/app.js +32 -32
  86. package/lib/160/resources/js/bootstrap.js +35 -35
  87. package/lib/160/resources/views/welcome.blade.php +132 -132
  88. package/lib/160/routes/api.php +19 -19
  89. package/lib/160/routes/channels.php +18 -18
  90. package/lib/160/routes/console.php +19 -19
  91. package/lib/160/routes/web.php +19 -19
  92. package/lib/160/storage/app/.gitignore +3 -3
  93. package/lib/160/storage/app/public/.gitignore +2 -2
  94. package/lib/160/storage/framework/cache/.gitignore +3 -3
  95. package/lib/160/storage/framework/cache/data/.gitignore +2 -2
  96. package/lib/160/storage/framework/sessions/.gitignore +2 -2
  97. package/lib/160/storage/framework/testing/.gitignore +2 -2
  98. package/lib/160/storage/framework/views/.gitignore +2 -2
  99. package/lib/160/storage/logs/.gitignore +2 -2
  100. package/lib/160/tests/CreatesApplication.php +22 -22
  101. package/lib/160/tests/Feature/ExampleTest.php +21 -21
  102. package/lib/160/tests/TestCase.php +10 -10
  103. package/lib/160/tests/Unit/ExampleTest.php +18 -18
  104. package/lib/160/vite.config.js +26 -26
  105. package/lib/161/resources/js/components/pages/About.vue +4 -4
  106. package/lib/161/resources/js/components/pages/Error.vue +4 -4
  107. package/lib/161/resources/js/components/pages/Home.vue +20 -20
  108. package/lib/161/resources/js/components/templates/App.vue +85 -85
  109. package/lib/161/resources/js/mainStore.js +19 -19
  110. package/lib/161/resources/js/router.js +39 -39
  111. package/lib/161/resources/views/layouts/app.blade.php +13 -13
  112. package/lib/161/storage/framework/views/2e9971bec8a529e679b1529e9584647f.php +13 -13
  113. package/lib/162/resources/js/components/pages/About.vue +4 -4
  114. package/lib/162/resources/js/components/pages/Error.vue +4 -4
  115. package/lib/162/resources/js/components/pages/Home.vue +20 -20
  116. package/lib/162/resources/js/components/templates/App.vue +85 -85
  117. package/lib/162/resources/js/mainStore.js +19 -19
  118. package/lib/162/resources/js/router.js +39 -39
  119. package/lib/162/resources/views/layouts/app.blade.php +13 -13
  120. package/package.json +2 -2
@@ -1,201 +1,201 @@
1
- <?php
2
-
3
- use Illuminate\Support\Str;
4
-
5
- return [
6
-
7
- /*
8
- |--------------------------------------------------------------------------
9
- | Default Session Driver
10
- |--------------------------------------------------------------------------
11
- |
12
- | This option controls the default session "driver" that will be used on
13
- | requests. By default, we will use the lightweight native driver but
14
- | you may specify any of the other wonderful drivers provided here.
15
- |
16
- | Supported: "file", "cookie", "database", "apc",
17
- | "memcached", "redis", "dynamodb", "array"
18
- |
19
- */
20
-
21
- 'driver' => env('SESSION_DRIVER', 'file'),
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 immediately expire on the browser closing, set that option.
31
- |
32
- */
33
-
34
- 'lifetime' => env('SESSION_LIFETIME', 120),
35
-
36
- 'expire_on_close' => false,
37
-
38
- /*
39
- |--------------------------------------------------------------------------
40
- | Session Encryption
41
- |--------------------------------------------------------------------------
42
- |
43
- | This option allows you to easily specify that all of your session data
44
- | should be encrypted before it is stored. All encryption will be run
45
- | automatically by Laravel and you can use the Session like normal.
46
- |
47
- */
48
-
49
- 'encrypt' => false,
50
-
51
- /*
52
- |--------------------------------------------------------------------------
53
- | Session File Location
54
- |--------------------------------------------------------------------------
55
- |
56
- | When using the native session driver, we need a location where session
57
- | files may be stored. A default has been set for you but a different
58
- | location may be specified. This is only needed for file sessions.
59
- |
60
- */
61
-
62
- 'files' => storage_path('framework/sessions'),
63
-
64
- /*
65
- |--------------------------------------------------------------------------
66
- | Session Database Connection
67
- |--------------------------------------------------------------------------
68
- |
69
- | When using the "database" or "redis" session drivers, you may specify a
70
- | connection that should be used to manage these sessions. This should
71
- | correspond to a connection in your database configuration options.
72
- |
73
- */
74
-
75
- 'connection' => env('SESSION_CONNECTION'),
76
-
77
- /*
78
- |--------------------------------------------------------------------------
79
- | Session Database Table
80
- |--------------------------------------------------------------------------
81
- |
82
- | When using the "database" session driver, you may specify the table we
83
- | should use to manage the sessions. Of course, a sensible default is
84
- | provided for you; however, you are free to change this as needed.
85
- |
86
- */
87
-
88
- 'table' => 'sessions',
89
-
90
- /*
91
- |--------------------------------------------------------------------------
92
- | Session Cache Store
93
- |--------------------------------------------------------------------------
94
- |
95
- | While using one of the framework's cache driven session backends you may
96
- | list a cache store that should be used for these sessions. This value
97
- | must match with one of the application's configured cache "stores".
98
- |
99
- | Affects: "apc", "dynamodb", "memcached", "redis"
100
- |
101
- */
102
-
103
- 'store' => env('SESSION_STORE'),
104
-
105
- /*
106
- |--------------------------------------------------------------------------
107
- | Session Sweeping Lottery
108
- |--------------------------------------------------------------------------
109
- |
110
- | Some session drivers must manually sweep their storage location to get
111
- | rid of old sessions from storage. Here are the chances that it will
112
- | happen on a given request. By default, the odds are 2 out of 100.
113
- |
114
- */
115
-
116
- 'lottery' => [2, 100],
117
-
118
- /*
119
- |--------------------------------------------------------------------------
120
- | Session Cookie Name
121
- |--------------------------------------------------------------------------
122
- |
123
- | Here you may change the name of the cookie used to identify a session
124
- | instance by ID. The name specified here will get used every time a
125
- | new session cookie is created by the framework for every driver.
126
- |
127
- */
128
-
129
- 'cookie' => env(
130
- 'SESSION_COOKIE',
131
- Str::slug(env('APP_NAME', 'laravel'), '_').'_session'
132
- ),
133
-
134
- /*
135
- |--------------------------------------------------------------------------
136
- | Session Cookie Path
137
- |--------------------------------------------------------------------------
138
- |
139
- | The session cookie path determines the path for which the cookie will
140
- | be regarded as available. Typically, this will be the root path of
141
- | your application but you are free to change this when necessary.
142
- |
143
- */
144
-
145
- 'path' => '/',
146
-
147
- /*
148
- |--------------------------------------------------------------------------
149
- | Session Cookie Domain
150
- |--------------------------------------------------------------------------
151
- |
152
- | Here you may change the domain of the cookie used to identify a session
153
- | in your application. This will determine which domains the cookie is
154
- | available to in your application. A sensible default has been set.
155
- |
156
- */
157
-
158
- 'domain' => env('SESSION_DOMAIN'),
159
-
160
- /*
161
- |--------------------------------------------------------------------------
162
- | HTTPS Only Cookies
163
- |--------------------------------------------------------------------------
164
- |
165
- | By setting this option to true, session cookies will only be sent back
166
- | to the server if the browser has a HTTPS connection. This will keep
167
- | the cookie from being sent to you when it can't be done securely.
168
- |
169
- */
170
-
171
- 'secure' => env('SESSION_SECURE_COOKIE'),
172
-
173
- /*
174
- |--------------------------------------------------------------------------
175
- | HTTP Access Only
176
- |--------------------------------------------------------------------------
177
- |
178
- | Setting this value to true will prevent JavaScript from accessing the
179
- | value of the cookie and the cookie will only be accessible through
180
- | the HTTP protocol. You are free to modify this option if needed.
181
- |
182
- */
183
-
184
- 'http_only' => true,
185
-
186
- /*
187
- |--------------------------------------------------------------------------
188
- | Same-Site Cookies
189
- |--------------------------------------------------------------------------
190
- |
191
- | This option determines how your cookies behave when cross-site requests
192
- | take place, and can be used to mitigate CSRF attacks. By default, we
193
- | will set this value to "lax" since this is a secure default value.
194
- |
195
- | Supported: "lax", "strict", "none", null
196
- |
197
- */
198
-
199
- 'same_site' => 'lax',
200
-
201
- ];
1
+ <?php
2
+
3
+ use Illuminate\Support\Str;
4
+
5
+ return [
6
+
7
+ /*
8
+ |--------------------------------------------------------------------------
9
+ | Default Session Driver
10
+ |--------------------------------------------------------------------------
11
+ |
12
+ | This option controls the default session "driver" that will be used on
13
+ | requests. By default, we will use the lightweight native driver but
14
+ | you may specify any of the other wonderful drivers provided here.
15
+ |
16
+ | Supported: "file", "cookie", "database", "apc",
17
+ | "memcached", "redis", "dynamodb", "array"
18
+ |
19
+ */
20
+
21
+ 'driver' => env('SESSION_DRIVER', 'file'),
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 immediately expire on the browser closing, set that option.
31
+ |
32
+ */
33
+
34
+ 'lifetime' => env('SESSION_LIFETIME', 120),
35
+
36
+ 'expire_on_close' => false,
37
+
38
+ /*
39
+ |--------------------------------------------------------------------------
40
+ | Session Encryption
41
+ |--------------------------------------------------------------------------
42
+ |
43
+ | This option allows you to easily specify that all of your session data
44
+ | should be encrypted before it is stored. All encryption will be run
45
+ | automatically by Laravel and you can use the Session like normal.
46
+ |
47
+ */
48
+
49
+ 'encrypt' => false,
50
+
51
+ /*
52
+ |--------------------------------------------------------------------------
53
+ | Session File Location
54
+ |--------------------------------------------------------------------------
55
+ |
56
+ | When using the native session driver, we need a location where session
57
+ | files may be stored. A default has been set for you but a different
58
+ | location may be specified. This is only needed for file sessions.
59
+ |
60
+ */
61
+
62
+ 'files' => storage_path('framework/sessions'),
63
+
64
+ /*
65
+ |--------------------------------------------------------------------------
66
+ | Session Database Connection
67
+ |--------------------------------------------------------------------------
68
+ |
69
+ | When using the "database" or "redis" session drivers, you may specify a
70
+ | connection that should be used to manage these sessions. This should
71
+ | correspond to a connection in your database configuration options.
72
+ |
73
+ */
74
+
75
+ 'connection' => env('SESSION_CONNECTION'),
76
+
77
+ /*
78
+ |--------------------------------------------------------------------------
79
+ | Session Database Table
80
+ |--------------------------------------------------------------------------
81
+ |
82
+ | When using the "database" session driver, you may specify the table we
83
+ | should use to manage the sessions. Of course, a sensible default is
84
+ | provided for you; however, you are free to change this as needed.
85
+ |
86
+ */
87
+
88
+ 'table' => 'sessions',
89
+
90
+ /*
91
+ |--------------------------------------------------------------------------
92
+ | Session Cache Store
93
+ |--------------------------------------------------------------------------
94
+ |
95
+ | While using one of the framework's cache driven session backends you may
96
+ | list a cache store that should be used for these sessions. This value
97
+ | must match with one of the application's configured cache "stores".
98
+ |
99
+ | Affects: "apc", "dynamodb", "memcached", "redis"
100
+ |
101
+ */
102
+
103
+ 'store' => env('SESSION_STORE'),
104
+
105
+ /*
106
+ |--------------------------------------------------------------------------
107
+ | Session Sweeping Lottery
108
+ |--------------------------------------------------------------------------
109
+ |
110
+ | Some session drivers must manually sweep their storage location to get
111
+ | rid of old sessions from storage. Here are the chances that it will
112
+ | happen on a given request. By default, the odds are 2 out of 100.
113
+ |
114
+ */
115
+
116
+ 'lottery' => [2, 100],
117
+
118
+ /*
119
+ |--------------------------------------------------------------------------
120
+ | Session Cookie Name
121
+ |--------------------------------------------------------------------------
122
+ |
123
+ | Here you may change the name of the cookie used to identify a session
124
+ | instance by ID. The name specified here will get used every time a
125
+ | new session cookie is created by the framework for every driver.
126
+ |
127
+ */
128
+
129
+ 'cookie' => env(
130
+ 'SESSION_COOKIE',
131
+ Str::slug(env('APP_NAME', 'laravel'), '_').'_session'
132
+ ),
133
+
134
+ /*
135
+ |--------------------------------------------------------------------------
136
+ | Session Cookie Path
137
+ |--------------------------------------------------------------------------
138
+ |
139
+ | The session cookie path determines the path for which the cookie will
140
+ | be regarded as available. Typically, this will be the root path of
141
+ | your application but you are free to change this when necessary.
142
+ |
143
+ */
144
+
145
+ 'path' => '/',
146
+
147
+ /*
148
+ |--------------------------------------------------------------------------
149
+ | Session Cookie Domain
150
+ |--------------------------------------------------------------------------
151
+ |
152
+ | Here you may change the domain of the cookie used to identify a session
153
+ | in your application. This will determine which domains the cookie is
154
+ | available to in your application. A sensible default has been set.
155
+ |
156
+ */
157
+
158
+ 'domain' => env('SESSION_DOMAIN'),
159
+
160
+ /*
161
+ |--------------------------------------------------------------------------
162
+ | HTTPS Only Cookies
163
+ |--------------------------------------------------------------------------
164
+ |
165
+ | By setting this option to true, session cookies will only be sent back
166
+ | to the server if the browser has a HTTPS connection. This will keep
167
+ | the cookie from being sent to you when it can't be done securely.
168
+ |
169
+ */
170
+
171
+ 'secure' => env('SESSION_SECURE_COOKIE'),
172
+
173
+ /*
174
+ |--------------------------------------------------------------------------
175
+ | HTTP Access Only
176
+ |--------------------------------------------------------------------------
177
+ |
178
+ | Setting this value to true will prevent JavaScript from accessing the
179
+ | value of the cookie and the cookie will only be accessible through
180
+ | the HTTP protocol. You are free to modify this option if needed.
181
+ |
182
+ */
183
+
184
+ 'http_only' => true,
185
+
186
+ /*
187
+ |--------------------------------------------------------------------------
188
+ | Same-Site Cookies
189
+ |--------------------------------------------------------------------------
190
+ |
191
+ | This option determines how your cookies behave when cross-site requests
192
+ | take place, and can be used to mitigate CSRF attacks. By default, we
193
+ | will set this value to "lax" since this is a secure default value.
194
+ |
195
+ | Supported: "lax", "strict", "none", null
196
+ |
197
+ */
198
+
199
+ 'same_site' => 'lax',
200
+
201
+ ];
@@ -1,36 +1,36 @@
1
- <?php
2
-
3
- return [
4
-
5
- /*
6
- |--------------------------------------------------------------------------
7
- | View Storage Paths
8
- |--------------------------------------------------------------------------
9
- |
10
- | Most templating systems load templates from disk. Here you may specify
11
- | an array of paths that should be checked for your views. Of course
12
- | the usual Laravel view path has already been registered for you.
13
- |
14
- */
15
-
16
- 'paths' => [
17
- resource_path('views'),
18
- ],
19
-
20
- /*
21
- |--------------------------------------------------------------------------
22
- | Compiled View Path
23
- |--------------------------------------------------------------------------
24
- |
25
- | This option determines where all the compiled Blade templates will be
26
- | stored for your application. Typically, this is within the storage
27
- | directory. However, as usual, you are free to change this value.
28
- |
29
- */
30
-
31
- 'compiled' => env(
32
- 'VIEW_COMPILED_PATH',
33
- realpath(storage_path('framework/views'))
34
- ),
35
-
36
- ];
1
+ <?php
2
+
3
+ return [
4
+
5
+ /*
6
+ |--------------------------------------------------------------------------
7
+ | View Storage Paths
8
+ |--------------------------------------------------------------------------
9
+ |
10
+ | Most templating systems load templates from disk. Here you may specify
11
+ | an array of paths that should be checked for your views. Of course
12
+ | the usual Laravel view path has already been registered for you.
13
+ |
14
+ */
15
+
16
+ 'paths' => [
17
+ resource_path('views'),
18
+ ],
19
+
20
+ /*
21
+ |--------------------------------------------------------------------------
22
+ | Compiled View Path
23
+ |--------------------------------------------------------------------------
24
+ |
25
+ | This option determines where all the compiled Blade templates will be
26
+ | stored for your application. Typically, this is within the storage
27
+ | directory. However, as usual, you are free to change this value.
28
+ |
29
+ */
30
+
31
+ 'compiled' => env(
32
+ 'VIEW_COMPILED_PATH',
33
+ realpath(storage_path('framework/views'))
34
+ ),
35
+
36
+ ];
@@ -1,40 +1,40 @@
1
- <?php
2
-
3
- namespace Database\Factories;
4
-
5
- use Illuminate\Database\Eloquent\Factories\Factory;
6
- use Illuminate\Support\Str;
7
-
8
- /**
9
- * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\User>
10
- */
11
- class UserFactory extends Factory
12
- {
13
- /**
14
- * Define the model's default state.
15
- *
16
- * @return array<string, mixed>
17
- */
18
- public function definition()
19
- {
20
- return [
21
- 'name' => fake()->name(),
22
- 'email' => fake()->unique()->safeEmail(),
23
- 'email_verified_at' => now(),
24
- 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
25
- 'remember_token' => Str::random(10),
26
- ];
27
- }
28
-
29
- /**
30
- * Indicate that the model's email address should be unverified.
31
- *
32
- * @return static
33
- */
34
- public function unverified()
35
- {
36
- return $this->state(fn (array $attributes) => [
37
- 'email_verified_at' => null,
38
- ]);
39
- }
40
- }
1
+ <?php
2
+
3
+ namespace Database\Factories;
4
+
5
+ use Illuminate\Database\Eloquent\Factories\Factory;
6
+ use Illuminate\Support\Str;
7
+
8
+ /**
9
+ * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\User>
10
+ */
11
+ class UserFactory extends Factory
12
+ {
13
+ /**
14
+ * Define the model's default state.
15
+ *
16
+ * @return array<string, mixed>
17
+ */
18
+ public function definition()
19
+ {
20
+ return [
21
+ 'name' => fake()->name(),
22
+ 'email' => fake()->unique()->safeEmail(),
23
+ 'email_verified_at' => now(),
24
+ 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
25
+ 'remember_token' => Str::random(10),
26
+ ];
27
+ }
28
+
29
+ /**
30
+ * Indicate that the model's email address should be unverified.
31
+ *
32
+ * @return static
33
+ */
34
+ public function unverified()
35
+ {
36
+ return $this->state(fn (array $attributes) => [
37
+ 'email_verified_at' => null,
38
+ ]);
39
+ }
40
+ }
@@ -1,36 +1,36 @@
1
- <?php
2
-
3
- use Illuminate\Database\Migrations\Migration;
4
- use Illuminate\Database\Schema\Blueprint;
5
- use Illuminate\Support\Facades\Schema;
6
-
7
- return new class extends Migration
8
- {
9
- /**
10
- * Run the migrations.
11
- *
12
- * @return void
13
- */
14
- public function up()
15
- {
16
- Schema::create('users', function (Blueprint $table) {
17
- $table->id();
18
- $table->string('name');
19
- $table->string('email')->unique();
20
- $table->timestamp('email_verified_at')->nullable();
21
- $table->string('password');
22
- $table->rememberToken();
23
- $table->timestamps();
24
- });
25
- }
26
-
27
- /**
28
- * Reverse the migrations.
29
- *
30
- * @return void
31
- */
32
- public function down()
33
- {
34
- Schema::dropIfExists('users');
35
- }
36
- };
1
+ <?php
2
+
3
+ use Illuminate\Database\Migrations\Migration;
4
+ use Illuminate\Database\Schema\Blueprint;
5
+ use Illuminate\Support\Facades\Schema;
6
+
7
+ return new class extends Migration
8
+ {
9
+ /**
10
+ * Run the migrations.
11
+ *
12
+ * @return void
13
+ */
14
+ public function up()
15
+ {
16
+ Schema::create('users', function (Blueprint $table) {
17
+ $table->id();
18
+ $table->string('name');
19
+ $table->string('email')->unique();
20
+ $table->timestamp('email_verified_at')->nullable();
21
+ $table->string('password');
22
+ $table->rememberToken();
23
+ $table->timestamps();
24
+ });
25
+ }
26
+
27
+ /**
28
+ * Reverse the migrations.
29
+ *
30
+ * @return void
31
+ */
32
+ public function down()
33
+ {
34
+ Schema::dropIfExists('users');
35
+ }
36
+ };