chore(maint): add psr conflict, ajust seeder defaults
This commit is contained in:
parent
56979569cf
commit
b620f1e9af
@ -49,7 +49,7 @@ The following PHP extensions are known to cause problems throughout the app (res
|
|||||||
|
|
||||||
- [PHP PSR - PSR Interfaces](https://pecl.php.net/package/psr)
|
- [PHP PSR - PSR Interfaces](https://pecl.php.net/package/psr)
|
||||||
|
|
||||||
This is because the extension conflicts with a package Laravel uses, [Monolog](https://github.com/Seldaek/monolog), which is required for logging across the whole application. Oftentimes, removing this extension with your system's package manager or disabling it in ``php.ini`` does the trick and gets things to work again.
|
This is because the extension [conflicts with a package Laravel uses](https://github.com/laravel/framework/issues/46165#issuecomment-1436945349), [Monolog](https://github.com/Seldaek/monolog), which is required for logging across the whole application. Oftentimes, removing this extension with your system's package manager or disabling it in ``php.ini`` does the trick and gets things to work again.
|
||||||
|
|
||||||
*This issue should not affect versions below 1.0.0.*
|
*This issue should not affect versions below 1.0.0.*
|
||||||
|
|
||||||
|
@ -54,6 +54,9 @@
|
|||||||
"dont-discover": []
|
"dont-discover": []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"conflict": {
|
||||||
|
"ext-psr": "*"
|
||||||
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"App\\": "app/",
|
"App\\": "app/",
|
||||||
|
@ -47,16 +47,39 @@ class UserSeeder extends Seeder
|
|||||||
$admin = User::create(([
|
$admin = User::create(([
|
||||||
'uuid' => 'b741345057274a519144881927be0290', // Ghost
|
'uuid' => 'b741345057274a519144881927be0290', // Ghost
|
||||||
'name' => 'Admin',
|
'name' => 'Admin',
|
||||||
'email' => 'admin@webvokestudio.pt',
|
'email' => 'admin@example.com',
|
||||||
'email_verified_at' => now(),
|
'email_verified_at' => now(),
|
||||||
'username' => 'admin',
|
'username' => 'admin',
|
||||||
'registrationIp' => '0.0.0.0',
|
'registrationIp' => '0.0.0.0',
|
||||||
'currentIp' => '0.0.0.0',
|
'currentIp' => '0.0.0.0',
|
||||||
'password' => Hash::make('admin'),
|
'password' => Hash::make('password'),
|
||||||
]))->assignRole('user', 'reviewer', 'hiringManager', 'admin');
|
]))->assignRole('user', 'reviewer', 'hiringManager', 'admin');
|
||||||
|
|
||||||
|
$staff = User::create(([
|
||||||
|
'uuid' => 'b741345057274a519144881927be0290', // Ghost
|
||||||
|
'name' => 'Admin',
|
||||||
|
'email' => 'staffmember@example.com',
|
||||||
|
'email_verified_at' => now(),
|
||||||
|
'username' => 'admin',
|
||||||
|
'registrationIp' => '0.0.0.0',
|
||||||
|
'currentIp' => '0.0.0.0',
|
||||||
|
'password' => Hash::make('password'),
|
||||||
|
]))->assignRole('user', 'reviewer', 'staff');
|
||||||
|
|
||||||
|
|
||||||
|
$endUser = User::create(([
|
||||||
|
'uuid' => 'b741345057274a519144881927be0290', // Ghost
|
||||||
|
'name' => 'Admin',
|
||||||
|
'email' => 'admin@example.com',
|
||||||
|
'email_verified_at' => now(),
|
||||||
|
'username' => 'admin',
|
||||||
|
'registrationIp' => '0.0.0.0',
|
||||||
|
'currentIp' => '0.0.0.0',
|
||||||
|
'password' => Hash::make('password'),
|
||||||
|
]))->assignRole('user');
|
||||||
|
|
||||||
$users = User::factory()
|
$users = User::factory()
|
||||||
->count(1500)
|
->count(60)
|
||||||
->create();
|
->create();
|
||||||
|
|
||||||
foreach ($users as $user) {
|
foreach ($users as $user) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user