You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
503 B
22 lines
503 B
<?php
|
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class UserRolesPermissionsTableSeeder extends Seeder
|
|
{
|
|
private $tableToSeed = 'roles_permissions';
|
|
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
DB::table($this->tableToSeed)->truncate();
|
|
DB::table($this->tableToSeed)->insert([
|
|
['type' => 0, 'name' => 'admin', 'label' => 'Admin'],
|
|
['type' => 0, 'name' => 'worker', 'label' => 'Worker'],
|
|
]);
|
|
}
|
|
}
|