Example #1
0
 /**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store(CreateCompraRequest $request)
 {
     $compra = new Compra($request->all());
     $compra->user_id = Auth::user()->id;
     $compra->save();
     Session::flash('message', 'Compra Creada Correctamente');
     return Redirect::to('compras');
 }