Replace your exception with
return parent::__call($method, $arguments):
This way if the magic method does not match your criteria it will pass the processing back up to the eloquent model and allow for it to process the magic method.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community