/**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request $request
  * @return \Illuminate\Http\Response
  */
 public function store(Request $request)
 {
     //dd($request->all());
     //return Client::create($request->all());
     //return $this->repository->create($request->all());
     return $this->service->create($request->all());
 }
 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(Request $request)
 {
     try {
         return $this->service->create($request->all());
     } catch (ValidatorException $e) {
         Response::json(['error' => true, 'message' => $e->getMessageBag()], 400);
     }
 }
 /**
  * Store a newly created resource in storage.
  *
  * @param  Request  $request
  * @return Response
  */
 public function store(Request $request, $id)
 {
     $file = $request->file('file');
     $extension = $file->getClientOriginalExtension();
     $data['file'] = $file;
     $data['name'] = $request->name;
     $data['extension'] = $extension;
     $data['description'] = $request->description;
     $data['project_id'] = $id;
     return $this->service->create($data);
 }
 /**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function create(Request $request)
 {
     //dd($request->all());
     return $this->service->create($request->all());
 }
 /**
  * Store a newly created resource in storage.
  *
  * @param  Request  $request
  * @return Response
  */
 public function store(Request $request)
 {
     return $this->service->create($request->all());
 }
 /**
  * Store a newly created resource in storage.
  *
  * @param  Request  $request
  * @return Response
  */
 public function store(Request $request, $id)
 {
     $request['project_id'] = isset($request['id']) ? $request['id'] : $id;
     unset($request['id']);
     return $this->service->create($request->all());
 }