Laravel - call_user_func_array() expects parameter 1 to be a valid callback Laravel - call_user_func_array() expects parameter 1 to be a valid callback laravel laravel

Laravel - call_user_func_array() expects parameter 1 to be a valid callback


According to your stack trace, Laravel fires the 404 event. That means, your event handler for this throws the error.Furthermore call_user_func' is complaining about a missing functionurl()` in your handler. so it seems to me that the call

echo Request::url();

is the root of all evil here. Remove it and check to see if you still get the error.


Use URI::current() or URI::full() instead of Request::url()