芝麻web文件管理V1.00
编辑当前文件:/home/digitalh/yeahea.digitalhubbd.com/app/Policies/CategoryPolicy.php
check(); } /** * Determine whether the user can view the Category. * * @param \App\Models\User $user * @param \App\Models\Category $category * @return mixed */ public function view(User $user, Category $category) { return (new Authorize($user, 'view_category', $category))->check(); } /** * Determine whether the user can create Categorys. * * @param \App\Models\User $user * @return mixed */ public function create(User $user) { return (new Authorize($user, 'add_category'))->check(); } /** * Determine whether the user can update the Category. * * @param \App\Models\User $user * @param \App\Models\Category $category * @return mixed */ public function update(User $user, Category $category) { return (new Authorize($user, 'edit_category', $category))->check(); } /** * Determine whether the user can delete the Category. * * @param \App\Models\User $user * @param \App\Models\Category $category * @return mixed */ public function delete(User $user, Category $category) { return (new Authorize($user, 'delete_category', $category))->check(); } /** * Determine whether the user can delete the Product. * * @param \App\Models\User $user * @return mixed */ public function massDelete(User $user) { return (new Authorize($user, 'delete_category'))->check(); } }