public function destroy(UserPolicy $user, Gallery $gallery)
    {
        return $gallery->user_id == user_id() && $gallery->user_type == user_type();
    }
public function destroy(UserPolicy $user, Gallery $gallery)
    {
        return $gallery->user_id == user_id() && $gallery->user_type == user_type();
    }
public function destroy ( UserPolicy $ user , Gallery $ gallery ) { return $ gallery -> user_id == user_id ( ) && $ gallery -> user_type == user_type ( ) ; }
Determine if the given user can delete the given gallery.

@param UserPolicy $user
@param Gallery $gallery

@return bool
Determine if the given user can delete the given gallery .