News for hackers. Stuff that matters.
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?
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.

Re:Ask HN: If you are starting in 2024, what is the most pro... by pyronite on Saturday June 08, 2024 @11:56AM (#40618389)
Alpine + Livewire is the go-to stack for SPA-like Laravel functionality these days. If you "need" JavaScript for form purposes, Filament is well worth taking a look at as well.
Re:Ask HN: If you are starting in 2024, what is the most pro... by 0xblinq on Saturday June 08, 2024 @12:04PM (#40618446)
Checkout Inertiajs , it’s and adapter for Laravel to integrate it with react or vue