You can do it like this:
Table::select('name','surname')->where('id', 1)->get();
More Related Contents:
- Laravel – Eloquent “Has”, “With”, “WhereHas” – What do they mean?
- Laravel Eloquent vs DB facade: Why use Eloquent and decrease performance? [closed]
- Getting just the latest value on a joined table with Eloquent
- Laravel Migration Change to Make a Column Nullable
- How to query between two dates using Laravel and Eloquent?
- Laravel 5.6 – Passport JWT httponly cookie SPA authentication for self consuming API?
- How to protect image from public view in Laravel 5?
- Eloquent Collection: Counting and Detect Empty
- Laravel Check If Related Model Exists
- Laravel Redirect Back with() Message
- Laravel Model with Two Primary Keys update [duplicate]
- Eloquent eager load Order by
- Laravel 5.2 – Use a String as a Custom Primary Key for Eloquent Table becomes 0
- Laravel Eloquent “WHERE NOT IN”
- Laravel 5.4^ – How to customize notification email layout?
- Select Last Row in the Table
- How to get distinct values for non-key column fields in Laravel?
- What is the difference between queue:work –daemon and queue:listen
- Laravel Eloquent sort by relation table column
- Including a css file in a blade template?
- Eloquent Parent-Child relationship on same model
- Laravel 5 – artisan seed [ReflectionException] Class SongsTableSeeder does not exist
- Laravel Eloquent – distinct() and count() not working properly together
- There is no existing directory at /storage/logs and its not buildable: Permission denied
- Laravel: Returning the namespaced owner of a polymorphic relation
- How to pass multiple parameters to middleware with OR condition in Laravel 5.2
- Laravel Many to many self referencing table only works one way
- How to insert big data on the laravel?
- Polymorphic Eloquent relationships with namespaces
- Merge ‘with’ and ‘whereHas’ in Laravel 5