4 ms·
What if you need javascript? What would you recommend in addition ti to laravel? Or is Laravel enough?
by altdataseller 2y ago
What if you need javascript? What would you recommend in addition ti to laravel? Or is Laravel enough?
- kugelblitz 2y agoI 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.
- pyronite 2y agoAlpine + 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.
- 0xblinq 2y agoCheckout Inertiajs , it’s and adapter for Laravel to integrate it with react or vue