Looking to hire Laravel developers? Try LaraJobs

laravel-inertia-react-preset maintained by ravenberg

Description
An Inertia.js + Reactjs preset for the Laravel Framework
Author
Last update
2020/01/05 18:37 (dev-master)
License
Links
Downloads
33

Comments
comments powered by Disqus

Inertia React Laravel ui preset 💜

Leverage ReactJS as your view layer within your Laravel application. This is a preset to setup Inertia + React within a fresh Laravel installation. By using this, you get front-end scaffolding including authentication. Tailwind is setup as well.

The benefit of using Inertia is how you are able to use Laravel and all its beloved features while having a modern front-end along with that modern front-end development workflow;

$ npm run hot

A proxy server is started with hot reloading. If you are not using Laravel Valet you may have to change the proxy url within your webpack.mix.js file.

Setup

Follow these 3 steps to execute the scaffolding using this preset.

Step 1

Assuming a fresh laravel installation, run the following command to get started;

$ composer require --dev ravenberg/laravel-inertia-react-preset

Step 2

Run the actual command

$ php artisan ui:auth inertia-react 

Step 3

Pull in dependencies and run a build

$ npm install && npm run dev

🎉 You're all set. Time to craft your app.