how do I get value of a column from join table when search item is sent laravel
I have two tables users and categories. users table has a foreign key linked to categories table. categories table has 2 columns id and name I want to get the value of name when a search_item is sent if(!empty($request->get("search_item"))) {…