database/seeds/RoleTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $roles = ['superadmn','admin','inventory manager','order manager','customer'];
        foreach($roles as $role){
            Role::create([
                'role_name' => $role
            ]);
        }
    }
public function run ( ) { $ roles = [ 'superadmn' , 'admin' , 'inventory manager' , 'order manager' , 'customer' ] ; foreach ( $ roles as $ role ) { Role :: create ( [ 'role_name' => $ role ] ) ; } }
Run the database seeds.
Run the database seeds .