database/seeds/ProvinceSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {	DB::table('provinces')->delete();
    		$province_data = [
		    			[
				        'name' 			=> 'Azad Kashmir (AJK)'
				    	],
				    	[
				        'name' 			=> 'Balochistan'
				    	],
				    	[
				        'name' 			=> 'Gilgit Baltistan'
				    	],
				    	[
				        'name' 			=> 'FATA'
				    	],
				    	[
				        'name' 			=> 'KPK'
				    	],
				    	[
				        'name' 			=> 'Punjab'
				    	],
				    	[
				        'name' 			=> 'Sindh'
				    	],
				    	[
				        'name' 			=> 'ISlamabad'
				    	],
    				];
		    Province::insert($province_data);
    }
public function run ( ) { DB :: table ( 'provinces' ) -> delete ( ) ; $ province_data = [ [ 'name' => 'Azad Kashmir (AJK)' ] , [ 'name' => 'Balochistan' ] , [ 'name' => 'Gilgit Baltistan' ] , [ 'name' => 'FATA' ] , [ 'name' => 'KPK' ] , [ 'name' => 'Punjab' ] , [ 'name' => 'Sindh' ] , [ 'name' => 'ISlamabad' ] , ] ; Province :: insert ( $ province_data ) ; }
Run the database seeds.
Run the database seeds .