Exemple #1
0
 /**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store(CreateClienteRequest $request)
 {
     #$cliente = Cliente::create($request->all());
     $cliente = new Cliente($request->all());
     $cliente->user_id = Auth::user()->id;
     $cliente->save();
     Session::flash('message', 'Cliente Creado Correctamente');
     return Redirect::to('clientes');
 }
 public function update($id_cliente, CreateClienteRequest $request)
 {
     $cliente = Cliente::find($id_cliente);
     $cliente->update($request->all());
     return redirect('clientes');
 }
 /**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store(CreateClienteRequest $Request)
 {
     $cliente = Cliente::Create($Request->all());
     return redirect('clientes');
 }