roles and permission only localy
This commit is contained in:
1 parent
148ce3fdc4
commit
15751e017f
2 files changed
+42
-41
No files matched your search
@@ -24,11 +24,11 @@ class DatabaseSeeder extends Seeder
|
||||
InhaltsverzeichnisSeeder::class,
|
||||
]);
|
||||
|
||||
// if (app()->isLocal()) {
|
||||
Konto::factory()->count(10)->create();
|
||||
Gutachter::factory()->count(30)->create();
|
||||
Auftraggeber::factory()->count(30)->create();
|
||||
// }
|
||||
if (app()->isLocal()) {
|
||||
Konto::factory()->count(10)->create();
|
||||
Gutachter::factory()->count(30)->create();
|
||||
Auftraggeber::factory()->count(30)->create();
|
||||
}
|
||||
|
||||
$this->call([
|
||||
RolesAndPermissionsSeeder::class,
|
||||
|
||||
@@ -19,43 +19,44 @@ class RolesAndPermissionsSeeder extends Seeder
|
||||
],
|
||||
['name']
|
||||
);
|
||||
if (app()->isLocal()) {
|
||||
$user = User::factory()->create([
|
||||
'konto_id' => '1',
|
||||
'gender' => 'Herr',
|
||||
'name' => 'Hermann Telser',
|
||||
'email' => 'ht@webwerkstatt.tirol',
|
||||
'password' => Hash::make('salam'),
|
||||
'agb_akzeptiert' => true,
|
||||
'super_admin' => true,
|
||||
'app_verified_at' => now(),
|
||||
'email_verified_at' => now(),
|
||||
]);
|
||||
$user->assignRole('super_admin');
|
||||
$user->assignRole('konto_switch');
|
||||
|
||||
$user = User::factory()->create([
|
||||
'konto_id' => '1',
|
||||
'gender' => 'Herr',
|
||||
'name' => 'Hermann Telser',
|
||||
'email' => 'ht@webwerkstatt.tirol',
|
||||
'password' => Hash::make('salam'),
|
||||
'agb_akzeptiert' => true,
|
||||
'super_admin' => true,
|
||||
'app_verified_at' => now(),
|
||||
'email_verified_at' => now(),
|
||||
]);
|
||||
$user->assignRole('super_admin');
|
||||
$user->assignRole('konto_switch');
|
||||
$user = User::factory()->create([
|
||||
'konto_id' => '1',
|
||||
'gender' => 'Frau',
|
||||
'name' => 'Yvonne Bormes',
|
||||
'email' => 'yvonne.bormes@ztkammer.at',
|
||||
'password' => Hash::make('yvonne'),
|
||||
'agb_akzeptiert' => true,
|
||||
'app_verified_at' => now(),
|
||||
'email_verified_at' => now(),
|
||||
]);
|
||||
$user->assignRole('gutachter');
|
||||
|
||||
$user = User::factory()->create([
|
||||
'konto_id' => '1',
|
||||
'gender' => 'Frau',
|
||||
'name' => 'Yvonne Bormes',
|
||||
'email' => 'yvonne.bormes@ztkammer.at',
|
||||
'password' => Hash::make('yvonne'),
|
||||
'agb_akzeptiert' => true,
|
||||
'app_verified_at' => now(),
|
||||
'email_verified_at' => now(),
|
||||
]);
|
||||
$user->assignRole('gutachter');
|
||||
|
||||
$user = User::factory()->create([
|
||||
'konto_id' => '2',
|
||||
'gender' => 'Frau',
|
||||
'name' => 'Daniela Mandlez',
|
||||
'email' => 'daniela.mandkez@kammerwest.at',
|
||||
'password' => Hash::make('daniela'),
|
||||
'agb_akzeptiert' => true,
|
||||
'app_verified_at' => now(),
|
||||
'email_verified_at' => now(),
|
||||
]);
|
||||
$user->assignRole('gutachter');
|
||||
$user = User::factory()->create([
|
||||
'konto_id' => '2',
|
||||
'gender' => 'Frau',
|
||||
'name' => 'Daniela Mandlez',
|
||||
'email' => 'daniela.mandkez@kammerwest.at',
|
||||
'password' => Hash::make('daniela'),
|
||||
'agb_akzeptiert' => true,
|
||||
'app_verified_at' => now(),
|
||||
'email_verified_at' => now(),
|
||||
]);
|
||||
$user->assignRole('gutachter');
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user