芝麻web文件管理V1.00
编辑当前文件:/home/digitalh/yeahea.digitalhubbd.com/app/Policies/CountryPolicy.php
isAdmin(); // return (new Authorize($user, 'view_utility'))->check(); } /** * Determine whether the user can view the Country. * * @param \App\Models\User $user * @param \App\Models\Country $country * @return mixed */ public function view(User $user, Country $country) { return $user->isAdmin(); // return (new Authorize($user, 'view_utility', $country))->check(); } /** * Determine whether the user can create Countrys. * * @param \App\Models\User $user * @return mixed */ public function create(User $user) { return $user->isAdmin(); // return (new Authorize($user, 'add_utility'))->check(); } /** * Determine whether the user can update the Country. * * @param \App\Models\User $user * @param \App\Models\Country $country * @return mixed */ public function update(User $user, Country $country) { return $user->isAdmin(); // return (new Authorize($user, 'edit_utility', $country))->check(); } /** * Determine whether the user can delete the Country. * * @param \App\Models\User $user * @param \App\Models\Country $country * @return mixed */ public function delete(User $user, Country $country) { return $user->isAdmin(); // return (new Authorize($user, 'delete_utility', $country))->check(); } /** * Determine whether the user can delete the Product. * * @param \App\Models\User $user * @return mixed */ public function massDelete(User $user) { return $user->isAdmin(); // return (new Authorize($user, 'delete_utility'))->check(); } }