When my function runs, I get the following error message. Why does this error occur?
Method Illuminate\\Database\\Eloquent\\Collection::latest does not e