php artisan preset react code example
Example 1: laravel react
composer require laravel/ui
// Generate basic scaffolding...
php artisan ui react
// Generate login / registration scaffolding...
php artisan ui react --auth
Example 2: php artisan preset react
install react in laravel:
For Laravel 7+ projects:
composer require laravel/ui
php artisan ui react
For Laravel 5.5+ projects:
php artisan preset react