~/sample$ php artisan migrate
PHP Warning: require(/home/tide/sample/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /home/tide/sample/bootstrap/autoload.php on line 17
PHP Fatal error: require(): Failed opening required '/home/tide/sample/bootstrap/../vendor/autoload.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/tide/sample/bootstrap/autoload.php on line 17
コード
migrateに、限った話ではないと思うのですが、上記エラーです。 ディレクトリ構造が良くないのかもしれないと思っているのですが、homesteadをホームページのインストーラーより、インストールしたのですが、その後、laravelを composer create-project laravel/laravel プロジェクト名 で、インストールしました。 どうすれば、上記エラーを解消できますでしょうか。
sample$ composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for phpunit/phpunit 4.8.20 -> satisfiable by phpunit/phpunit[4.8.20].
- phpunit/phpunit 4.8.20 requires php ~5.3.3|~5.4|~5.5|~5.6 -> your PHP version (7.0.23) does not satisfy that requirement.
vendorディレクトリは、2つありましたが、sample直下になかったので、削除せず、composer updateを実行するも下記エラーです。 sample$ composer install Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Your requirements could not be resolved to an installable set of packages. Problem 1 - Installation request for phpunit/phpunit 4.8.20 -> satisfiable by phpunit/phpunit[4.8.20]. - phpunit/phpunit 4.8.20 requires php ~5.3.3|~5.4|~5.5|~5.6 -> your PHP version (7.0.23) does not satisfy that requirement. アドバイスお願いいたします。
回答1件
あなたの回答
tips
プレビュー