public function read(User $user, $model)
    {
        // Does this post belong to the current user?
        $current = $user->id === $model->author_id;

        return $current || $this->checkPermission($user, $model, 'read');
    }
public function read(User $user, $model)
    {
        // Does this post belong to the current user?
        $current = $user->id === $model->author_id;

        return $current || $this->checkPermission($user, $model, 'read');
    }
public function read ( User $ user , $ model ) { // Does this post belong to the current user? $ current = $ user -> id === $ model -> author_id ; return $ current || $ this -> checkPermission ( $ user , $ model , 'read' ) ; }
Determine if the given model can be viewed by the user.

@param \TCG\Voyager\Contracts\User $user
@param  $model

@return bool
Determine if the given model can be viewed by the user .