Exemplo n.º 1
0
 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store()
 {
     $input = Request::all();
     $input['created_at'] = Carbon::now();
     $input['update_at'] = Carbon::now();
     $input['user_id'] = 1;
     Imovel::create($input);
     return redirect('imoveis');
 }