public function run()
 {
     DB::table('roles')->delete();
     App\Models\Role::create(['id' => '1', 'name' => 'super admin', 'display_name' => 'Super Admin', 'description' => 'Admin with all the permissions']);
     App\Models\Role::create(['id' => '2', 'name' => 'owner', 'display_name' => 'Project Owner', 'description' => 'User is the owner of a given project']);
     App\Models\Role::create(['id' => '3', 'name' => 'admin', 'display_name' => 'User Administrator', 'description' => 'User is allowed to manage and edit other users']);
 }
Exemplo n.º 2
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     DB::table('roles')->delete();
     App\Models\Role::create(['name' => 'Members', 'slug' => 'members', 'description' => 'Limited access']);
     App\Models\Role::create(['name' => 'Partners', 'slug' => 'partners', 'description' => 'See and manage only their transactions']);
     App\Models\Role::create(['name' => 'Admin', 'slug' => 'admin', 'description' => 'See and manage everything']);
     $this->command->info('Roles table seeded!');
 }