removed shield use superadmin
This commit is contained in:
1 parent
7fd7f706bc
commit
419148cd18
60 files changed
+611
-2363
No files matched your search
@@ -1,49 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
|
||||
class RolesAndPermissionsSeeder extends Seeder
|
||||
{
|
||||
public function run(): void
|
||||
{
|
||||
DB::table('roles')->upsert(
|
||||
[
|
||||
['name' => 'user', 'guard_name' => 'web'],
|
||||
['name' => 'administrator', 'guard_name' => 'web'],
|
||||
],
|
||||
['name']
|
||||
);
|
||||
|
||||
$user = User::factory()->create([
|
||||
'name' => 'Hermann Telser',
|
||||
'email' => 'ht@webwerkstatt.tirol',
|
||||
'password' => Hash::make('salam'),
|
||||
'email_verified_at' => now(),
|
||||
'client_id' => 1,
|
||||
]);
|
||||
$user->assignRole('super_admin');
|
||||
|
||||
$user = User::factory()->create([
|
||||
'name' => 'Ubaldo Perrucci',
|
||||
'email' => 'ubaldo.perrucci@gmail.com',
|
||||
'password' => Hash::make('oscar'),
|
||||
'email_verified_at' => now(),
|
||||
'client_id' => 1,
|
||||
]);
|
||||
$user->assignRole('administrator');
|
||||
|
||||
$user = User::factory()->create([
|
||||
'name' => 'Renato Rossi',
|
||||
'email' => 'rr@uta.it',
|
||||
'password' => Hash::make('salam'),
|
||||
'email_verified_at' => now(),
|
||||
'client_id' => 1,
|
||||
]);
|
||||
$user->assignRole('user');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user