Reputation: 85
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
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
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