public function store() { var_dump($this->authorizer->guest()); if ($this->authorizer->guest()) { return 'redirect'; } else { $this->repository->create('...'); } }
public function setUpdateListask(Request $request, Listask $listask) { //* $this->validate($request, ['task' => 'required|max:255', 'deadline' => 'required']); //*/ $this->tasks->updateListask($listask, $request->task, $request->deadline); $chaine = $listask->task->id; return redirect("listasks/{$chaine}"); }
public function user_index(Request $request) { return view('articles.index', ['articles' => $this->articles->forUser($request->user())]); }
/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { return $this->repository->delete($id); }