laravel-actions icon indicating copy to clipboard operation
laravel-actions copied to clipboard

Add Support for Precognitive Requests

Open AlexJezior opened this issue 2 years ago • 5 comments

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."

AlexJezior avatar Nov 18 '22 01:11 AlexJezior