I am trying to get the order that has the client
and service
as a foreignkey with whereUuid
with this line of code:
$order = Order::whereUuid($order_id)->with(['client', 'service'])->first();
But the intellisense is showing me this error, although I did not see any error on the logs. Or I don’t know how to check for error logs in laravel that is running in a docker container.
Method Order::whereUuid() is not defined. The call is passed to the magic Model::__callStatic() method.PHP(PHP6615)
Please can you help me solve this or if there is a better approach to handle the matter, I will appreciate it. Thank you.