database/seeders/RoleSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        Role::create([
            'name' => 'admin'
        ]);
        Role::create([
            'name' => 'cashier'
        ]);
    }
public function run ( ) { Role :: create ( [ 'name' => 'admin' ] ) ; Role :: create ( [ 'name' => 'cashier' ] ) ; }
Run the database seeds.
Run the database seeds .