Example #1
0
 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(StoreDeliveryRequest $request)
 {
     return Delivery::create($request->all());
 }
 public function run()
 {
     DB::table('deliveries')->delete();
     Delivery::create(['name' => 'доставка курьером по адресу', 'pseudo_name' => 'courier']);
     Delivery::create(['name' => 'самовывоз', 'pseudo_name' => 'pickup']);
 }