canDo('import_export.import_export.action.copy')) { return true; } $this->model->is_owner; } /** * Determine if the given user can empty the given import_export. * * @param Authenticatable $user * * @return bool */ function empty(Authenticatable $user, ImportExport $import_export) { if ($authUser->canDo('import_export.import_export.action.empty')) { return true; } $this->model->is_owner; } /** * Determine if the given user can transfer the given import_export. * * @param Authenticatable $user * * @return bool */ public function transfer(Authenticatable $user, ImportExport $import_export) { if ($authUser->canDo('import_export.import_export.action.transfer')) { return true; } $this->model->is_owner; } }