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.
We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.
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
.
The MIT License (MIT). Please see License File for more information.