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