Get Specific Columns Using With() Function in Laravel 7 code example Example: get specific columns using with() function in laravel eloquent Post::with('user:id,username')->get();