Closed JGlueck-WIKA closed 5 months ago
@PhiloNL, in case you might consider to move the documentation into this (or a separate) repository, I'd be happy to create a PR for this. 🙂
Thanks @JGlueck-WIKA 😄 I've updated the documentation on the website 🙌
First of all, your package is absolutely awesome for a lot of usecases! 🧨
One thing I noticed though is that it might be difficult for newcomers to follow the documentation as I assume it was written for Laravel 10. In 11, the middleware files are no longer in userland by default.
Perhaps it would be good to update the documentation for Laravel 11 and suggest to create a new custom "VerifyCsrfToken" middleware that simply extends the base middleware and applies your trait like so:
Then, the default middleware needs to be replaced during bootstrapping:
Maybe there's a better approach, but this did the job for us. 🙂
For Laravel 11 it would also be required to publish the CORS configuration file first: