laravel-actions
laravel-actions copied to clipboard
Add Support for Precognitive Requests
Laravel recently introduced (v9.33) new functionality to help validate the frontend with precognitive requests. See here: https://github.com/laravel/framework/pull/44339
Issue: When trying to incorporate this with actions as a controller, you get the following exception:
file: "/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Routing/PrecognitionControllerDispatcher.php"
line: 43
message: "Attempting to predict the outcome of the [Lorisleiva\\Actions\\Decorators\\ControllerDecorator::asController()] method but the method is not defined."