Reputation: 2920
I'm trying to call
$log = Log::render();
but all i get is
BadMethodCallException: Method [render] does not exist.
I've got a Log.php in my /app/libraries directory with the method render. Right before calling the render method of Log I call the render method of a Class called Map. It's the same thing, but the Log does not work.
Any Ideas?
Upvotes: 0
Views: 148
Reputation: 20889
Laravel comes with its own Log class, which is likely being picked up and used before your log class. Try namespacing your Log class and then reference the namespaced class instead.
Upvotes: 1
Reputation: 8461
I'm fairly sure it is looking within Laravel's Log
class for the method render
which is causing the error (since that method doesn't exist).
You should either namespace your class under something different, or remove the namespace alias within app/config/app.php
for Laravel's Log.
Upvotes: 1