lorisleiva / laravel-actions

⚡️ Laravel components that take care of one specific task
https://laravelactions.com
MIT License
2.52k stars 124 forks source link

Add Support for Precognitive Requests #212

Open AlexJezior opened 2 years ago

AlexJezior commented 2 years ago

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."
Wulfheart commented 1 year ago

Is it even released AND documented yet?

AlexJezior commented 1 year ago

It has been released for a couple months now, official documentation is on its way.

vinnygambiny commented 1 year ago

Any update here?

jameswagoner commented 1 year ago

I documented a solution that seems to be working for me at the moment

Wulfheart commented 1 month ago

This should be documented in the docs.