Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

ravenberg/laravel-inertia-react-preset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.