Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

awneek's avatar

php artisan command not working

After installing composer and installing laravel using laravel installer, I can create project, but not being able to run php artisan command. it is giving following error

kickass@kickass-UX303LB:~/a$ php artisan PHP Warning: require(/home/kickass/a/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /home/kickass/a/bootstrap/autoload.php on line 17 PHP Fatal error: require(): Failed opening required '/home/kickass/a/bootstrap/../vendor/autoload.php' (include_path='.:/usr/share/php') in /home/kickass/a/bootstrap/autoload.php on line 17

what is wrong? I tried running composer install and composer update, didn't help.

0 likes
3 replies
awneek's avatar

after trying your solution, Interface 'Illuminate\Contracts\Auth\Factory' not found in /home/kickass/project1/bootstrap/cache/compiled.php on line 356

junecity's avatar

If you are using Homestead, type Vagrant ssh and go to the directory of your site. then do composer install

Please or to participate in this conversation.