Merhaba,
Laravel 5.1 Güzelliği kitabını takip ediyorum. Bütün kurulumları sıralı ve düzgün bir şekilde takip ettim ve uyguladım. Laravel ile yeni bir proje oluşturdum sanal makine ayarlarını yaptım ve çalıştırdım. Browser'da test.app diyerek siteye girmeye çalıştığımda aşağıdaki hataları aldım.
( ! ) Warning: require(/home/vagrant/Code/test/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /home/vagrant/Code/test/bootstrap/autoload.php on line 17
Call Stack
# Time Memory Function Location
1 0.0007 233464 {main}( ) .../index.php:0
2 0.0031 233904 require( '/home/vagrant/Code/test/bootstrap/autoload.php' ) .../index.php:22
( ! ) Fatal error: require(): Failed opening required '/home/vagrant/Code/test/bootstrap/../vendor/autoload.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/vagrant/Code/test/bootstrap/autoload.php on line 17
Call Stack
# Time Memory Function Location
1 0.0007 233464 {main}( ) .../index.php:0
2 0.0031 233904 require( '/home/vagrant/Code/test/bootstrap/autoload.php' ) .../index.php:22
Sorunu internette çok araştırdım fakat bir sonuca varadım. Genelde composer update , composer install komutlarını çalıştırın demişler fakat ben bu komutları yazdığım zaman aşağıdaki hatayı almaktayım.
Composer could not find a composer.json file in /home/user
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
Ayrıca ubuntu 16.04 kullanmaktayım. composer genellikle herkeste direkt
~/.composer şeklinde kurulmuş fakat bende
~/.config/composer dizini içerisinde yer almaktadır. Sorun bu yüzden olabilir mi? Günlerdir uğraşıyorum bir çözüme ulaşamadım