basic comparatore completed
This commit is contained in:
1 parent
cbdc6aff47
commit
16cc214db6
80 files changed
+2413
-2794
No files matched your search
@@ -12,7 +12,7 @@ class DatabaseSeeder extends Seeder
|
||||
public function run(): void
|
||||
{
|
||||
$this->call([
|
||||
UserSeeder::class,
|
||||
RolesAndPermissionsSeeder::class,
|
||||
ProvoiderSeeder::class,
|
||||
ClientsSeeder::class,
|
||||
BookmakerSeeder::class,
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
<?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' => 'super_admin', 'guard_name' => 'web'],
|
||||
['name' => 'konto_switch', 'guard_name' => 'web'],
|
||||
['name' => 'betsapi_mapper', '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,
|
||||
'sport_id' => 1,
|
||||
'bookmaker_id' => 26,
|
||||
]);
|
||||
$user->assignRole('super_admin');
|
||||
$user->assignRole('konto_switch');
|
||||
$user->assignRole('betsapi_mapper');
|
||||
|
||||
$user = User::factory()->create([
|
||||
'name' => 'Ubaldo Perrucci',
|
||||
'email' => 'ubaldo.perrucci@gmail.com',
|
||||
'password' => Hash::make('oscar'),
|
||||
'email_verified_at' => now(),
|
||||
'client_id' => 1,
|
||||
'sport_id' => 1,
|
||||
'bookmaker_id' => 26,
|
||||
]);
|
||||
$user->assignRole('super_admin');
|
||||
$user->assignRole('konto_switch');
|
||||
$user->assignRole('betsapi_mapper');
|
||||
}
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
|
||||
class UserSeeder extends Seeder
|
||||
{
|
||||
public function run(): void
|
||||
{
|
||||
|
||||
User::factory()->create([
|
||||
'name' => 'Hermann Telser',
|
||||
'email' => 'ht@webwerkstatt.tirol',
|
||||
'password' => Hash::make('salam'),
|
||||
'email_verified_at' => now(),
|
||||
'client_id' => 1,
|
||||
'sport_id' => 1,
|
||||
'multiline_setting_id' => 1,
|
||||
'super_admin' => 1,
|
||||
]);
|
||||
|
||||
User::factory()->create([
|
||||
'name' => 'Ubaldo Perrucci',
|
||||
'email' => 'ubaldo.perrucci@gmail.com',
|
||||
'password' => Hash::make('oscar'),
|
||||
'email_verified_at' => now(),
|
||||
'client_id' => 1,
|
||||
'sport_id' => 1,
|
||||
'multiline_setting_id' => 1,
|
||||
'super_admin' => 1,
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user