I have got 2 joined tables in Eloquent namely themes and users.
theme model:
public function user() { return $this->belongs_to(
On Laravel 5.5, the cleanest way to do this is:
Theme::with('user:userid,name,address')->get()
You add a colon and the fields you wish to select separated by a comma and without a space between them.