ultimate_beaver
ultimate_beaver

Reputation: 85

Laravel php artisan doesn't work

I'm trying to use php artisan in my laravel directory but it gives the following warning

PHP Warning:  require(/home/mahmoud/Desktop/Learning/laravel/blog/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /home/mahmoud/Desktop/Learning/laravel/blog/bootstrap/autoload.php on line 17
PHP Fatal error:  require(): Failed opening required '/home/mahmoud/Desktop/Learning/laravel/blog/bootstrap/../vendor/autoload.php' (include_path='.:/usr/share/php') in /home/mahmoud/Desktop/Learning/laravel/blog/bootstrap/autoload.php on line 17

Upvotes: 0

Views: 5333

Answers (3)

Leo
Leo

Reputation: 7420

Run composer with --no-scripts

composer update --no-scripts 

Go to Command Prompt set path to your project, then type this command:

composer install

It will automatically install all dependencies in vendor/.

Upvotes: 1

Aboudeh87
Aboudeh87

Reputation: 716

try:

cd /home/mahmoud/Desktop/Learning/laravel/blog
composer install

you should see the vendor folder under blog directory, if you still have the problem execute composer du

Upvotes: 4

Araqel Araqelyan
Araqel Araqelyan

Reputation: 348

Try composer update i think this will fix your issue

Upvotes: 1

Related Questions