database/seeders/PermissionSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $permissions = ['create', 'edit-all', 'delete-all', 'view-all', 'edit-own', 'delete-own', 'view-own'];
        foreach ($permissions as $permission) {
            Permission::create([
                'name' => $permission
            ]);
        }
    }
public function run ( ) { $ permissions = [ 'create' , 'edit-all' , 'delete-all' , 'view-all' , 'edit-own' , 'delete-own' , 'view-own' ] ; foreach ( $ permissions as $ permission ) { Permission :: create ( [ 'name' => $ permission ] ) ; } }
Run the database seeds.
Run the database seeds .