Re:Ask HN: If you are starting in 2024, what is the most pro...
by altdataseller on Saturday June 08, 2024 @05:44AM
(#40616434)
What if you need javascript? What would you recommend in addition ti to laravel? Or is Laravel enough?
[ Parent
| on HN ]
Re:Ask HN: If you are starting in 2024, what is the most pro...
by kugelblitz on Saturday June 08, 2024 @10:16AM
(#40617701)
I would argue adding JavaScript on top of Laravel will make you slower. You can use Blade as the templating engine (or how JS people would call "Server Side Rendering" but which has been default for most full stack frameworks). Otherwise you need to create 2 additional interfaces, one for backend and one for frontend. And an additional layer of error handling.
I personally prefer Symfony over Laravel because of it's modularity and extensibility, but Laravel has the edge on getting started quickly and available SaaS features (such as billing modules and stuff).
If you need SPA-ish features, you could use htmx and if you need some on-site interactivity, I like Alpine.js.