javineo
1 year ago

L5.3 to L 5.4 (1/1) BadMethodCallException Call to undefined method Illuminate\Database\Query\Builder::findBySlug()

Posted 1 year ago by javineo

In the endless migration of Laravel 5.3 to Laravel 5.4 I have encountered a new problem and it is this error:

(1/1) BadMethodCallException
Call to undefined method Illuminate\Database\Query\Builder::findBySlug()

in Builder.php (line 2445)
at Builder->__call('findBySlug', array('consultas'))
in Builder.php (line 1254)
at Builder->findBySlug('consultas')
in Builder.php (line 1254)
at Builder->__call('findBySlug', array('consultas'))
in Model.php (line 1374)
at Builder->findBySlug('consultas')
in Model.php (line 1374)

I intuit that the problem is related to:

::findBySlug()

He used it in various models and controllers.

Please sign in or create an account to participate in this conversation.