database/seeders/EmployeeSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $staff=array(
            'employee_id' => '100',
            'fname' => 'Super',
            'lname' =>'Admin',
            'gender'=>'Male',
            'dob'=> Carbon::parse('1995-02-26'),
            'permanent_address' =>'Kirtipur,Kathmandu',
            'temporary_address' =>'New Baneshwor,Kathmandu',
            'city' =>'Kathmandu',
            'district'=>'Kathmandu',
            'phoneno'=>'4330654',
            'mobileno'=>'9827845346',
            'department_id'=>1,
            'title_id' => 1,
            'level_id'=> 1,
            'panno' => '123456g',
            'joined_date'=> Carbon::parse('2020-05-01'),
            'email' => 'super@admin.com'
        );
        DB::table('staff')->insert($staff);
    }
public function run ( ) { $ staff = array ( 'employee_id' => '100' , 'fname' => 'Super' , 'lname' => 'Admin' , 'gender' => 'Male' , 'dob' => Carbon :: parse ( '1995-02-26' ) , 'permanent_address' => 'Kirtipur,Kathmandu' , 'temporary_address' => 'New Baneshwor,Kathmandu' , 'city' => 'Kathmandu' , 'district' => 'Kathmandu' , 'phoneno' => '4330654' , 'mobileno' => '9827845346' , 'department_id' => 1 , 'title_id' => 1 , 'level_id' => 1 , 'panno' => '123456g' , 'joined_date' => Carbon :: parse ( '2020-05-01' ) , 'email' => 'super@admin.com' ) ; DB :: table ( 'staff' ) -> insert ( $ staff ) ; }
Run the database seeds.
Run the database seeds .