0
votes

i am using laravel 6.2 and now i want install Vue.js.i am trying like this

  1. composer require laravel/ui.
  2. php artisan ui vue.
  3. php artisan ui vue --auth.
  4. npm install.
  5. npm run dev.

but when i try to run command php artisan ui vue its says Could not open input file: artisan

2
php artisan preset vue run this then npm i and npm run devKamlesh Paul
not working (Could not open input file: artisan)Ahtesham Shah
please run cmd in right dir artisan file should be present thereKamlesh Paul
have you run composer install inside your new appDino Numić
are you in the right file?Snoxik

2 Answers

2
votes

You cant use php artisan if you are not inside a laravel project folder.

That is why it says 'Could not open input file - artisan'.

You need to be inside laravel folder & make sure that artisan file exist there

If you are on Linux/MAC then use ls command, if you are on Windows then use dir command to check your current directory

1
votes

You cannot use php artisan if you are NOT inside a laravel project folder.

Just use cd to go to your project_directory and try again