示例#1
0
 public function store(CreateHouseRequest $request)
 {
     //$input = Request::all();
     //$input['published_at'] = Carbon::now();
     //House::create($input);
     House::create($request->all());
     return redirect('houses');
 }
 /**
  * Save a new House
  *
  * @param HouseRequest $request
  * @return mixed
  */
 protected function createHouse(HouseRequest $request)
 {
     $house = House::create($request->all());
     $this->syncBanks($house, $request->input('bank_list'));
     return $house;
 }