I am working on a project which requires me to get all the list of all information from a table --Just like in a blog, i used the all()
method to do this but when i try to get the method i declared in my Model i get an error, saying
the collection instance does not exists
But when i use The
Model::find($id)->relationship()->name;
it works fine. Is there any way to load all relationship with the all()
function in laravel.
Thanks for your help..