database/seeds/TenderCategorySeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
		DB::table('tender_categories')->delete();
    		$category_data = [
		    			[
				        'title' 			=> 'Education'
				    	],
				    	[
				        'title' 			=> 'Health'
				    	],
				    	[
				        'title' 			=> 'Agriculture'
				    	],
				    	[
				        'title' 			=> 'Construction'
				    	],
				    	[
				        'title' 			=> 'Environment'
				    	],
				    	[
						'title' => 'Addition & Alteration'
						],
						[
						'title' => 'Advertising'
						],
						[
						'title' => 'Agriculture'
						],
						[
						'title' => 'Air Conditioning'
						],
						[
						'title' => 'Arms Ammunition'
						],
						[
						'title' => 'Auction'
						],
						[
						'title' => 'Audio Visual'
						],
						[
						'title' => 'Auto Parts'
						],
						[
						'title' => 'Automobiles/Vehicles'
						],
						[
						'title' => 'Bags'
						],
						[
						'title' => 'Balance'
						],			    	
						[
						'title' => 'Baldia'
						],
						[
						'title' => 'Bank Auctions'
						],
						[
						'title' => 'Bi Cycles Required'
						],
						[
						'title' => 'Bridges'
						],
						[
						'title' => 'Buildings'
						],
						[
						'title' => 'Cables'
						],
						[
						'title' => 'Chemicals'
						],
    				];
		    TenderCategory::insert($category_data);
    }
public function run ( ) { DB :: table ( 'tender_categories' ) -> delete ( ) ; $ category_data = [ [ 'title' => 'Education' ] , [ 'title' => 'Health' ] , [ 'title' => 'Agriculture' ] , [ 'title' => 'Construction' ] , [ 'title' => 'Environment' ] , [ 'title' => 'Addition & Alteration' ] , [ 'title' => 'Advertising' ] , [ 'title' => 'Agriculture' ] , [ 'title' => 'Air Conditioning' ] , [ 'title' => 'Arms Ammunition' ] , [ 'title' => 'Auction' ] , [ 'title' => 'Audio Visual' ] , [ 'title' => 'Auto Parts' ] , [ 'title' => 'Automobiles/Vehicles' ] , [ 'title' => 'Bags' ] , [ 'title' => 'Balance' ] , [ 'title' => 'Baldia' ] , [ 'title' => 'Bank Auctions' ] , [ 'title' => 'Bi Cycles Required' ] , [ 'title' => 'Bridges' ] , [ 'title' => 'Buildings' ] , [ 'title' => 'Cables' ] , [ 'title' => 'Chemicals' ] , ] ; TenderCategory :: insert ( $ category_data ) ; }
Run the database seeds.
Run the database seeds .
//District table seeder