When calling Eloquent's Model::all()
, you can specify which columns to return.
1$users = User::all(['id', 'name', 'email']);
When calling Eloquent's Model::all()
, you can specify which columns to return.
1$users = User::all(['id', 'name', 'email']);