LoginSignup
2
2

More than 3 years have passed since last update.

git cloneしたlaravelをローカルで動かすまで

Last updated at Posted at 2019-12-26

git cloneしてphp artisan serveしてエラーになるときはこうする。

vendorがないのでこういうエラーがでるようだ。
vendorはgit管理外。

前提

.envは作成しておく

エラー文
Warning: require(/app/todo/vendor/autoload.php): failed to open stream: No such file or directory in /app/todo/artisan on line 18

Fatal error: require(): Failed opening required '/app/todo/vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /app/todo/artisan on line 18


composer install

composer dump-autoload

// これをやらないとエラーになる
php artisan key:generate

php artisan serve

参考
Fatal error: Uncaught Error: Class 'Illuminate\Foundation\Application' not found - Qiita

[PHP]ComposerのCLIで利用できるコマンドの説明 | 9ensanのLifeHack

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2