laravel 11 dev and inertia.js not creating middleware
Aloha,
After creating a fresh laravel 11 app I am trying to add inertia.js. Following the docs I run composer require inertiajs/inertia-laravel which is successful and then when i try to create the middleware using php artisan inertia:middleware I get the following error: ERROR There are no commands defined in the "inertia" namespace. . This works for me on laravel 10. Any suggestions? I know that laravel 11 is not out yet.
The main version of inertiajs/inertia-laravel is not compatible with L11. What you got was some old version of the package. Remove it, then install the dev-master version: