I'm looking to learn how to create a Single Page Application (SPA) using Laravel, but I'm a bit unsure whether I should start with Laravel Inertia or Livewire. I would really appreciate any advice on which approach might be better suited for a beginner in SPA development.
Thank you!
For an SPA, definitely go Inertia. I wouldn’t call Livewire an SPA library.
I mean, the whole point with Livewire is that you can deliver an SPA-like experience without having to write more JS. So it not being an SPA library is not really a pro/con here.
The real question is the purpose for building this project and overall learning & delivery goals.
Want more career/project experience with tech that gets you hired? Use Inertia (probably with React as that usually has more jobs than Vue).
Want to build fast and avoid touching Javascript too much? Client needs something that gets the job done instead of having specific tech & UX requirements? Livewire is a great bet.