feat: add app and database modules
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class ModelHasRolesTableSeeder extends Seeder
|
||||
{
|
||||
|
||||
/**
|
||||
* Auto generated seed file
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
||||
|
||||
\DB::table('model_has_roles')->delete();
|
||||
|
||||
\DB::table('model_has_roles')->insert(array (
|
||||
0 =>
|
||||
array (
|
||||
'role_id' => 2,
|
||||
'model_type' => 'App\\Models\\User',
|
||||
'model_id' => 1,
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'role_id' => 1,
|
||||
'model_type' => 'App\\Models\\User',
|
||||
'model_id' => 2,
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'role_id' => 3,
|
||||
'model_type' => 'App\\Models\\User',
|
||||
'model_id' => 3,
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
'role_id' => 1,
|
||||
'model_type' => 'App\\Models\\User',
|
||||
'model_id' => 5,
|
||||
),
|
||||
));
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user