protected function can(string $action, ?Authorizable $user = null): bool
    {
        return ! \is_null($user)
                    ? $this->acl->canAs($user, $action)
                    : $this->acl->can($action);
    }
protected function can(string $action, ?Authorizable $user = null): bool
    {
        return ! \is_null($user)
                    ? $this->acl->canAs($user, $action)
                    : $this->acl->can($action);
    }
protected function can ( string $ action , ? Authorizable $ user = null ) : bool { return ! \ is_null ( $ user ) ? $ this -> acl -> canAs ( $ user , $ action ) : $ this -> acl -> can ( $ action ) ; }
Resolve if authorization can.

@param  string  $action
@param  \Orchestra\Contracts\Authorization\Authorizable|null  $user

@return bool
Resolve if authorization can .