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::query()->truncate();
        Roles::create(['role' => 'Super Admin']);
        Roles::create(['role' => 'Admin']);
        Roles::create(['role' => 'Kasir']);
    }
public function run ( ) { Roles :: query ( ) -> truncate ( ) ; Roles :: create ( [ 'role' => 'Super Admin' ] ) ; Roles :: create ( [ 'role' => 'Admin' ] ) ; Roles :: create ( [ 'role' => 'Kasir' ] ) ; }
Run the database seeds.
Run the database seeds .