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()
    {
        Permission::insert([
            ['name' => 'view_users'],
            ['name' => 'edit_users'],
            ['name' => 'view_roles'],
            ['name' => 'edit_roles'],
            ['name' => 'view_products'],
            ['name' => 'edit_products'],
            ['name' => 'view_orders'],
            ['name' => 'edit_orders'],
        ]);
    }
public function run ( ) { Permission :: insert ( [ [ 'name' => 'view_users' ] , [ 'name' => 'edit_users' ] , [ 'name' => 'view_roles' ] , [ 'name' => 'edit_roles' ] , [ 'name' => 'view_products' ] , [ 'name' => 'edit_products' ] , [ 'name' => 'view_orders' ] , [ 'name' => 'edit_orders' ] , ] ) ; }
Run the database seeds.
Run the database seeds .