database/seeders/DatabaseSeeder.php
/**
     * Seed the application's database.
     *
     * @return void
     */
Seed the application's database.
@return void
Seed the application ' s database . @return void
public function run()
    {
        DB::table('students')->insert([
             'course_id' =>2,
                    'role_id' =>2,
                    'fname' =>'met',
                    'lname' => 'sadfa',
                    'mname' => 'dasd',
                    'number' => '678698', 
                    'sufix' =>'jkk', 
                    'email' => 'n@n',
                    'password'=>bcrypt('654321'),
                    'remember_token'=>Str::random(10),  
        ]);
    }
public function run ( ) { DB :: table ( 'students' ) -> insert ( [ 'course_id' => 2 , 'role_id' => 2 , 'fname' => 'met' , 'lname' => 'sadfa' , 'mname' => 'dasd' , 'number' => '678698' , 'sufix' => 'jkk' , 'email' => 'n@n' , 'password' => bcrypt ( '654321' ) , 'remember_token' => Str :: random ( 10 ) , ] ) ; }
Seed the application's database.
Seed the application ' s database .
// \App\Models\User::factory(10)->create();