how to select specific columns to get by eloquent laravel code example Example: get specific columns using with() function in laravel eloquent Post::with('user:id,username')->get();