1

i'm trying to install react js on laravel, but when I tried input command "php artisan ui react" it's became error like on the image, have any idea for this case ? thank's

enter image description here

2
  • Did you run composer require laravel/ui in your project first? Commented Aug 29, 2020 at 16:29
  • i already do that Commented Aug 30, 2020 at 6:50

2 Answers 2

1

It's done, it happen cause I put js folder on public folder, which should be the js folder must on resource folder

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

Comments

0

As per laravel requirement for reactjs. You should have to install UI package from composser. https://laravel.com/docs/7.x/frontend
composer require laravel/ui
after that
php artisan ui react for generating the basic scaffolding.

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.