Exemplo n.º 1
0
 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(Request $request)
 {
     $values = $request->all();
     $proveedor = new Proveedor();
     $proveedor->fill($values);
     $proveedor->save();
     return redirect()->back();
 }
Exemplo n.º 2
0
 /**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store(CreateProveedorRequest $request)
 {
     $Proveedor = new Proveedor($request->all());
     $Proveedor->user_id = Auth::user()->id;
     $Proveedor->save();
     Session::flash('message', 'Proveedor Creado Correctamente');
     return Redirect::to('proveedores');
 }