public function verify(UserPolicy $user, Task $task)
    {
        if ($user->canDo('task.task.verify') && $user->isAdmin()) {
            return true;
        }


        return false;
    }
public function verify(UserPolicy $user, Task $task)
    {
        if ($user->canDo('task.task.verify') && $user->isAdmin()) {
            return true;
        }


        return false;
    }
public function verify ( UserPolicy $ user , Task $ task ) { if ( $ user -> canDo ( 'task.task.verify' ) && $ user -> isAdmin ( ) ) { return true ; } return false ; }
Determine if the given user can verify the given task.

@param User $user
@param Task $task

@return bool
Determine if the given user can verify the given task .