File manager - Edit - /var/www/html/gop/api/app/Policies/ImagePolicy.php
Back
<?php namespace App\Policies; use App\Models\Image; use App\Models\User; use Illuminate\Auth\Access\HandlesAuthorization; class ImagePolicy { use HandlesAuthorization; /** * Determine whether the user can view any models. * * @return \Illuminate\Auth\Access\Response|bool */ public function viewAny(User $user) { // } /** * Determine whether the user can view the model. * * @return \Illuminate\Auth\Access\Response|bool */ public function view(User $user, Image $image) { // } /** * Determine whether the user can create models. * * @return \Illuminate\Auth\Access\Response|bool */ public function create(User $user) { // } /** * Determine whether the user can update the model. * * @return \Illuminate\Auth\Access\Response|bool */ public function update(User $user, Image $image) { // } /** * Determine whether the user can delete the model. * * @return \Illuminate\Auth\Access\Response|bool */ public function delete(User $user, Image $image) { // } /** * Determine whether the user can restore the model. * * @return \Illuminate\Auth\Access\Response|bool */ public function restore(User $user, Image $image) { // } /** * Determine whether the user can permanently delete the model. * * @return \Illuminate\Auth\Access\Response|bool */ public function forceDelete(User $user, Image $image) { // } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings