20 lines
527 B
PHP
20 lines
527 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
use Illuminate\Database\Seeder;
|
||
|
|
|
||
|
|
class PermissionRolesSeeder extends Seeder
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Run the database seeds.
|
||
|
|
*
|
||
|
|
* @return void
|
||
|
|
*/
|
||
|
|
public function run()
|
||
|
|
{
|
||
|
|
DB::table('permission_role')->insert([
|
||
|
|
['role_id' => 11, 'department_id' => 2, 'permission_ids' => '["1","2","3","4","5","7","10","11"]', 'created_at' => now()],
|
||
|
|
['role_id' => 9, 'department_id' => 2, 'permission_ids' => '["1","2","3","4","5","7","10","11"]', 'created_at' => now()],
|
||
|
|
]);
|
||
|
|
}
|
||
|
|
}
|