edit profile wip
This commit is contained in:
1 parent
db18336181
commit
e68b1f162d
115 files changed
+17869
No files matched your search
@@ -0,0 +1,46 @@
|
||||
<?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(),
|
||||
]);
|
||||
$user->assignRole('administrator');
|
||||
|
||||
$user = User::factory()->create([
|
||||
'name' => 'Ubaldo Perrucci',
|
||||
'email' => 'ubaldo.perrucci@gmail.com',
|
||||
'password' => Hash::make('oscar'),
|
||||
'email_verified_at' => now(),
|
||||
]);
|
||||
$user->assignRole('administrator');
|
||||
|
||||
$user = User::factory()->create([
|
||||
'name' => 'Renato Rossi',
|
||||
'email' => 'rr@uta.it',
|
||||
'password' => Hash::make('salam'),
|
||||
'email_verified_at' => now(),
|
||||
]);
|
||||
$user->assignRole('user');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user