在我的项目中,我有许多有说服力的模型,它们在课堂上配置了如下Eager 的关系:
protected $with = [ 'countries', 'roles' ];
But sometimes I need just old plain model without any relations. Can I somehow do:
Model::noRelations()->all()
Really don't wanna use query builder nor create another class just for few occasions.