Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[5.8] Fix Error Message issue for Missing Method with Alternative Route Registering Syntax #28397
This PR was created to resolve issue #27344.
When working through the framework's Routing files it seems that the below
This allows the $action variable that is sent through to the
Then when the route's uri is hit in the browser it returns the proper error message, like: "Method App\Http\Controllers\TestController::index does not exist." as opposed to the generic "Function () does not exist", that the original issue report mentioned.
I ran PHPUnit and all of the tests were passing, except the ones that were skipped, see below from my console:
P.S. This is my first PR to the Laravel Framework, apologies if there are any issues.