/**
  * Store a newly created resource in storage.
  *
  * @param  Request  $request
  * @return Response
  */
 public function store(Request $request, $id)
 {
     $data = $request->all();
     $data['project_id'] = $id;
     return $this->service->create($data);
     //return $this->repository->create($request->all());
 }
 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request $request
  *
  * @return \Illuminate\Http\Response
  */
 public function store(Request $request, $id)
 {
     // $projectId = ($request->exists('project_id')) ? $request->get('project_id') : 0;
     $data = $request->all();
     $data['project_id'] = $id;
     if ($this->projectService->checkProjectPermissions($id) == false) {
         return ['error' => 'Access forbidden'];
     }
     return $this->service->create($data);
 }
 /**
  * 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
  * @param int $projectId
  * @return Response
  */
 public function store(Request $request, $projectId)
 {
     $data = $request->all();
     $data['project_id'] = $projectId;
     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, $project_id)
 {
     return $this->service->create($request->all(), $project_id);
 }