ravenberg/laravel-inertia-react-preset

This package is abandoned and no longer maintained. No replacement package was suggested.

An Inertia.js + Reactjs preset for the Laravel Framework

1.0.1 2020-01-05 17:37 UTC

This package is auto-updated.

Last update: 2024-05-14 19:42:01 UTC


README

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.