database/seeds/RolesTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        DB::table('roles')->delete();
        $roles = [
            ['name' => 'Admin'],
            ['name' => 'Company'],
            ['name' => 'Employee'],
        ];
        \App\Role::insert($roles);
    }
public function run ( ) { DB :: table ( 'roles' ) -> delete ( ) ; $ roles = [ [ 'name' => 'Admin' ] , [ 'name' => 'Company' ] , [ 'name' => 'Employee' ] , ] ; \ App \ Role :: insert ( $ roles ) ; }
Run the database seeds.
Run the database seeds .