我运行这个:
php artisan serve
但是我得到了这个错误:
PHP Warning: require(/opt/lampp/htdocs/phonebook/vendor/composer/../ralouphie/getallheaders/src/getallheaders.php): failed to open stream: No such file or directory in /opt/lampp/htdocs/phonebook/vendor/composer/autoload_real.php on line 66
PHP Fatal error: require(): Failed opening required '/opt/lampp/htdocs/phonebook/vendor/composer/../ralouphie/getallheaders/src/getallheaders.php' (include_path='.:/usr/share/php') in /opt/lampp/htdocs/phonebook/vendor/composer/autoload_real.php on line 66
答案 0 :(得分:0)
我认为您缺少依赖性。请运行
composer install
在根目录中安装依赖项
答案 1 :(得分:0)
第1步运行:
composer install
第2步:
php artisan key:generate
它应该工作