database/seeds/OrderTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
       $orders= array(['name'=>"Apple",'cust_id'=>'1'],['name'=>"Orange",'cust_id'=>'2'],['name'=>"Jackfruit",'cust_id'=>'1'],['name'=>"Pineapple",'cust_id'=>'2']);
       DB::table('orders')->insert($orders);
    }
public function run ( ) { $ orders = array ( [ 'name' => " Apple " , 'cust_id' => '1' ] , [ 'name' => " Orange " , 'cust_id' => '2' ] , [ 'name' => " Jackfruit " , 'cust_id' => '1' ] , [ 'name' => " Pineapple " , 'cust_id' => '2' ] ) ; DB :: table ( 'orders' ) -> insert ( $ orders ) ; }
Run the database seeds.
Run the database seeds .