This repo contains examples of server-side rendered JavaScript SPAs rendered in a Laravel application using our home grown spatie/laravel-server-side-rendering package.
We've got a a vue
+ vuex
+ vue-router
example and a very basic react
+ react-router
example that will be expanded in the future.
You can install the app locally like you'd install any other Laravel app.
git clone git@github.com:spatie/laravel-server-side-rendering-examples.git
composer install
yarn
yarn production
If you want to see server side rendering in action, set your .env
file's APP_ENV
key to production
.
Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.
Does your business depend on our contributions? Reach out and support us on Patreon. All pledges will be dedicated to allocating workforce on maintenance and new awesome stuff.
The MIT License (MIT). Please see License File for more information.