Sorry what?๐
Calm down. I'll explain myself.
What I'm trying to tell you is an opinionated way to build an SPA with a PHP Laravel backend; Supposedly very fast.
Laravel SPAs
Norms... This means a Laravel API Connected to a React, Vue, Svelte or whatever frontend. Maybe Sanctum to handle your API's. Pusher and Echo, and many other bla blas...๐ค
So what?๐คจ
Well let's roll that back. Shall we? โช
Let's Drop the API part, so we have Laravel and InertiaJs with React, Vue or any other of your choice.
Hmm๐ณ
Now Tush up your SPA Authentication with everything Fortify has to offer by using Fortify UI.
Fortify gives you the prebuilt authentication pages in all their raw glory. No styling and confusion.
All you have to do is follow it's lead. Create your components, and post your forms to the same routes used in FOrtify UI's views.
Happy Coding!
Top comments (2)
Pretty much anyone who takes Laravel seriously already knows about Inertia. You could bulk up your article to match the title and demonstrate how you build SPA's fast in Laravel using Inertia. You could build them just as fast using laravel-mix and Vue 3 without Inertia and have Laravel just handle HTTP requests. What makes Inertia especially good for SPA's?
Thanks a lot for your feedback.