/**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     $permissions = [['name' => 'admin_users', 'label' => 'Administrar Usuarios'], ['name' => 'admin_roles', 'label' => 'Administrar Roles']];
     foreach ($permissions as $permission) {
         App\Permission::create($permission);
     }
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     $actions = ['create', 'read', 'update', 'delete'];
     $entities = ['user', 'profile', 'role', 'permission', 'post'];
     foreach ($actions as $action) {
         foreach ($entities as $entity) {
             App\Permission::create(['name' => $action . '.' . $entity, 'label' => ucfirst($action) . ' ' . ucfirst($entity), 'description' => $action . '.' . $entity . ': Edit Description']);
         }
     }
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     $permission = App\Permission::create(['name' => 'Show Product', 'slug' => 'show-product']);
 }