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')->truncate();
        DB::table('roles')->insert([
            'name' => 'Admin',
            'description' => 'Administrator',
        ]);
        DB::table('roles')->insert([
            'name' => 'Tutor',
            'description' => 'Tutor',
        ]);
        DB::table('roles')->insert([
            'name' => 'Student',
            'description' => 'Student',
        ]);
    }
public function run ( ) { DB :: table ( 'roles' ) -> truncate ( ) ; DB :: table ( 'roles' ) -> insert ( [ 'name' => 'Admin' , 'description' => 'Administrator' , ] ) ; DB :: table ( 'roles' ) -> insert ( [ 'name' => 'Tutor' , 'description' => 'Tutor' , ] ) ; DB :: table ( 'roles' ) -> insert ( [ 'name' => 'Student' , 'description' => 'Student' , ] ) ; }
Run the database seeds.
Run the database seeds .