database/seeders/DepartmentSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $department=array(
            'departmentname'=>'Web Development',
            'shortname'=>'Web Dev',
            'code'=>'123',
            'departmentdescription'=>'This is Web Development Department'
           );
           DB::table('departments')->insert($department);
       }
public function run ( ) { $ department = array ( 'departmentname' => 'Web Development' , 'shortname' => 'Web Dev' , 'code' => '123' , 'departmentdescription' => 'This is Web Development Department' ) ; DB :: table ( 'departments' ) -> insert ( $ department ) ; }
Run the database seeds.
Run the database seeds .