Merge branch 'main-patch-2dd4' into 'main'

Main patch 2dd4

See merge request future-gamers/rbrecruiter-gc!5
This commit is contained in:
Miguel Nogueira 2023-06-28 11:19:50 +00:00
commit 68b60bd3f3
3 changed files with 30 additions and 4 deletions

View File

@ -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)
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.*

View File

@ -54,6 +54,9 @@
"dont-discover": []
}
},
"conflict": {
"ext-psr": "*"
},
"autoload": {
"psr-4": {
"App\\": "app/",

View File

@ -47,16 +47,39 @@ class UserSeeder extends Seeder
$admin = User::create(([
'uuid' => 'b741345057274a519144881927be0290', // Ghost
'name' => 'Admin',
'email' => 'admin@webvokestudio.pt',
'email' => 'admin@example.com',
'email_verified_at' => now(),
'username' => 'admin',
'registrationIp' => '0.0.0.0',
'currentIp' => '0.0.0.0',
'password' => Hash::make('admin'),
'password' => Hash::make('password'),
]))->assignRole('user', 'reviewer', 'hiringManager', 'admin');
$staff = User::create(([
'uuid' => 'b741345057274a519144881927be0290', // Ghost
'name' => 'Admin',
'email' => 'staffmember@example.com',
'email_verified_at' => now(),
'username' => 'staff_user',
'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' => 'End User',
'email' => 'enduser@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()
->count(1500)
->count(60)
->create();
foreach ($users as $user) {