Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jollysoundcake1's avatar

Laravel plus React (breeze / inertia) and Spatie roles and permissions

As per the subject.

I am playing around with Laravel Breeze (intertia / React), and trying to add the Spatie roles and permissions package to it.

Followed the docs to spin up my laravel docker container, using sail up - no problem.

Followed the docs to set up breeze scaffolding with inertia / React - again, beautiful, works as a charm.

However, after installing the Spatie permission package I can no longer access my localhost, or localhost/login etc etc. Nothing in the log I can see thus far

Set up factories, seeding etc, all worked - just when trying to access the app in the browser it gives a "connection refused" error.

I presume it'll be something to do with some routes getting messed up? Any ideas?

Thanks

0 likes
2 replies
jollysoundcake1's avatar

@sr57 Thanks for replying.

What weirdly seems to have solved the issue is literally clicking my Selenium image in the docker container (literally just to display the standalone console output in Docker).

Progress has been made in that I can access my routes, like localhost/login etc etc but now it moans about db not found basically when submitting a login requests. I can run migrate:fresh --seed and such no problem, and I see the data in the tables and such, so it's just the browser app that doesn't seem to connect

Please or to participate in this conversation.