database/seeds/PermissionsTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $permissions = [
            'role-admin',
            'permission-admin',
            'user-admin',
            'professor-admin',
          ];
        foreach ($permissions as $permission) {
            DB::table('permissions')->insert(['name' => $permission,'guard_name'=>'web']);
        }
    }
public function run ( ) { $ permissions = [ 'role-admin' , 'permission-admin' , 'user-admin' , 'professor-admin' , ] ; foreach ( $ permissions as $ permission ) { DB :: table ( 'permissions' ) -> insert ( [ 'name' => $ permission , 'guard_name' => 'web' ] ) ; } }
Run the database seeds.
Run the database seeds .