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

@param UserPolicy $user
@param Category $category

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