4 ms·
Out of curiosity, in your projects where you use PHP with frameworks such as Laravel, do you do server-side rendering, or SPA applications? I prefer the former
by severino 3y ago
Out of curiosity, in your projects where you use PHP with frameworks such as Laravel, do you do server-side rendering, or SPA applications? I prefer the former but I wonder what's the trend now for the people into Symphony, Laravel, etc.
- jw1224 3y agoLaravel has a dedicated marketing page especially about this: https://laravel.com/frontend https://laravel.com/frontend I personally use different approaches in different projects, but it works great both ways. Inertia is really excellent with frontend frameworks like React/Svelte, whilst Blade is brilliant for server-side templating too.
- NorwegianDude 3y agoI have mostly used SSR, but in the last years I'm sometimes using Inertia with React/Vue/Svelte and SSR too. Not sure if there are any clear trends. Personally I prefer plain old blade templates, and I only use FE frameworks if I think it makes sense. I don't know how the experience is with Livewire, but I've heard a lot of people like that too. The common options with Laravel is plain blade templates[1], Intertia(React/Vue/Svelte, SSR optional)[2] or Livewire[3]. [1] https://laravel.com/docs/10.x/blade https://laravel.com/docs/10.x/blade [2] https://inertiajs.com/ https://inertiajs.com/ [3] https://livewire.laravel.com/ https://livewire.laravel.com/