Usually to eager load a relationship I would do something like this:
Model::with(\'foo\', \'bar\', \'baz\')...
A solution might be to set
You can create method in your Model
public static function withAllRelations() { return static::with('foo', 'bar', 'baz'); }
And call Model::withAllRelations()
Model::withAllRelations()
Or
$instance->withAllRelations()->first(); // or ->get()