1
我能夠安裝Homestead並在虛擬機中創建新的應用程序。Laravel Homestead-如何將應用程序遷移到同一文件夾並連接MySQL數據庫?
但是,我確實有在虛擬機之外創建的應用程序,現在我想連接我的數據庫。它可以在localhost/phpmyadmin下編輯,它是我在3306端口上的mysql標準安裝。
我有我從互聯網上得到的文件夾,我指定的第一個應用程序叫做Laravel,我該怎麼做?
如果我只是在同一目錄下複製,我得到:
php artisan serve
PHP Fatal error: Class 'Barryvdh\Debugbar\ServiceProvider' not found in /home/vagrant/Code/foobooks/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php on line 157
PHP Stack trace:
PHP 1. {main}() /home/vagrant/Code/foobooks/artisan:0
PHP 2. require_once() /home/vagrant/Code/foobooks/artisan:30
PHP 3. require() /home/vagrant/Code/foobooks/bootstrap/start.php:68
PHP 4. Illuminate\Foundation\ProviderRepository->load() /home/vagrant/Code/foobooks/vendor/laravel/framework/src/Illuminate/Foundation/start.php:210
PHP 5. Illuminate\Foundation\ProviderRepository->compileManifest() /home/vagrant/Code/foobooks/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:57
PHP 6. Illuminate\Foundation\ProviderRepository->createProvider() /home/vagrant/Code/foobooks/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:121
{"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","message":"Class 'Barryvdh\\Debugbar\\ServiceProvider' not found","file":"\/home\/vagrant\/Code\/foobooks\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/ProviderRepository.php","line":157}}[email protected]:~/Code/foobooks$
[email protected]:~/Code/foobooks$ cd laravel
-bash: cd: laravel: No such file or directory
謝謝,呃! – Thankyou 2014-12-06 14:03:06