You can add an additional "where" into your code:
$categories = Category::where('user_id', $user_id)->where('category_name', 'something')->get()