Day 2
I guess there are a lot of things I could do at this point. I think integrating Laravel’s auth system with my existing front end would be a good start.
I created two directories in my project: frontend/
and backend/
. I copied my existing front end into frontend/
and put the new laravel code into backend/
.
sail up
Verified that http://0.0.0.0/up
is responding!
sail artisan route:list
shows me I have various API routes related to auth including register, login, logout, etc.
I also see a helpful hook in the breeze-react repo (repo) that I can use to work with the auth routes. I just need to do some changing of dependencies since I use react router instead of next.js router and native fetch
instead of axios.
That process is started but I’ll need to pick it up again tomorrow.