hasAbility('create-contents-'.$module->alias); } /** * Determine whether the user can update the module. * * @param \App\Models\User $user * @param \App\Module $module * @return mixed */ public function update(User $user, Module $module) { // } /** * Determine whether the user can delete the module. * * @param \App\Models\User $user * @param \App\Module $module * @return mixed */ public function delete(User $user, Module $module) { // } }