/**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     $this->clientService->delete($id);
     return redirect()->route('admin.clients.index');
 }
Esempio n. 2
0
 public function update(AdminClientRequest $request, $id)
 {
     $data = $request->all();
     $this->clientService->update($data, $id);
     return redirect()->route('admin.clients.index');
 }
 public function update(AdminClientRequest $request, $client_id)
 {
     $inputs = $request->all();
     $this->clientService->update($inputs, $client_id);
     return redirect()->route('admin.client.index');
 }