2

I need to connect React.js to Laravel 7.23 project with UIkit.css framework. Standard solution

composer require laravel/ui
php artisan ui react
php artisan ui react --auth
npm install

But, this solution includes bootstrap.css framework which I do not need. I also found

php artisan preset react

But on execution I get "Command "preset" is not defined."

1
  • i'm looking for this same question, did you found a solution? Commented Apr 3, 2021 at 11:14

2 Answers 2

2

laravel-ui is the new laravel frontend Scaffolding library. php artisan preset is no longer supported.

php artisan ui react will give you the react Scaffolding. There is no default option for UIkit.css If you do not need bootstrap just remove it and add something you want.

Hope that answers all your concerns.

Sign up to request clarification or add additional context in comments.

Comments

0

For installing react in laravel 7, refer to documentation

Install laravel ui composer package

composer require laravel/ui

Install react

 php artisan ui react

Install react with auth

 php artisan ui react --auth

Make sure you run npm install and npm run dev

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.