/home/techb158/ileadtechnology.com/SSM/app/Policies/utility
NameSizeModeActions
TodoPolicy.php15920644editdlrm
Edit: /home/techb158/ileadtechnology.com/SSM/app/Policies/utility/TodoPolicy.php (1592B)
can('access-todo'); } /** * Determine whether the user can view all the todo. * * @param \App\User $user * @param \App\Models\Utility\Todo $todo * @return mixed */ public function view(User $user) { return true; } /** * Determine whether the user can create todos. * * @param \App\User $user * @return mixed */ public function create(User $user) { return true; } /** * Determine whether the user can view the todo. * * @param \App\User $user * @param \App\Models\Utility\Todo $todo * @return mixed */ public function show(User $user, Todo $todo) { return $todo->user_id === $user->id; } /** * Determine whether the user can update the todo. * * @param \App\User $user * @param \App\Models\Utility\Todo $todo * @return mixed */ public function update(User $user, Todo $todo) { return $todo->user_id === $user->id; } /** * Determine whether the user can delete the todo. * * @param \App\User $user * @param \App\Models\Utility\Todo $todo * @return mixed */ public function delete(User $user, Todo $todo) { return $todo->user_id === $user->id; } }