bastinald / laravel-livewire-modals

Dynamic Laravel Livewire Bootstrap modals.
66 stars 31 forks source link

Please add support of Laravel 9 #14

Open n-bajenov opened 2 years ago

psjavi commented 2 years ago

I'm also trying to update my laravel 8 project to 9. I'll like to continue using your modals.

Thanks in adavance.

psjavi commented 2 years ago

For the moment I've done a little trick, I've moved the code from vendor as an internal package in my project following this guide: https://wisdmlabs.com/blog/create-package-laravel/

I've added in my composer.json the following:

"autoload": { "psr-4": { "App\\": "app/", "Bastinald\\LaravelLivewireModals\\": "packages/bastinald/laravel-livewire-modals/src/" },

Then, I've modified config/app.php and I've added into the providers:

'providers' => [ Bastinald\LaravelLivewireModals\Providers\LaravelLivewireModalsProvider::class

Finally, I've changed the composer.json of bastinald/laravel-livewire-modals and I've put "laravel/framework": "^9.0" and I've updated my composer.json.

psjavi commented 2 years ago

Hi, when are you going to release the new version with laravel 9 support?

rik43 commented 1 year ago

I found several forks of this repository with corrected compatibility. simply remove bastinald/laravel-livewire-modals and add, for example (this is not mine) composer require abovesky/laravel-livewire-modals There is no need to change anything else.

Also, if you have time to rewrite the code, it makes sense to consider newer and more functional components, for example. https://github.com/wire-elements/modal