bpocallaghan / laravel-admin-starter

A Laravel Admin Starter project with Page Builder, Roles, Impersonation, Analytics, Blog, News, Banners, FAQ, Testimonials and more
http://bpocallaghan.co.za
337 stars 92 forks source link

install error with php artisan key:generate #15

Closed greenlevel closed 6 years ago

greenlevel commented 6 years ago

Hello, I am trying to install the admin, but get the following warning.

vagrant@homestead:~/code/lav$ composer install Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdat ed dependencies. Run update to update them. Package operations: 100 installs, 0 updates, 0 removals

I don't know how to "update" that, so i continued to the next step. php artisan key:generate

I get these errors. PHP Warning: require(/home/vagrant/code/lav/vendor/autoload.php): failed to open stream: No such file or directory in /home/vagrant/code/lav/artisan on line 18

Warning: require(/home/vagrant/code/lav/vendor/autoload.php): failed to open stream: No such file or directory in /home/vagrant/code/lav/artisan on line 18 PHP Fatal error: require(): Failed opening required '/home/vagrant/code/lav/vendor/autoload.php' (include_path='.:/usr/share/php') in /home/vagrant/code/lav/artisan on line 18

Fatal error: require(): Failed opening required '/home/vagrant/code/lav/vendor/autoload.php' (include_path='.:/usr/share/php') in /home/vagrant/code/lav/artisan on line 18

Please advice. Thank you

xewl commented 6 years ago

composer update --lock

then go ahead.

If your .env-file has a key, the key:generate command can be ignored.

bpocallaghan commented 6 years ago

Hi @greenlevel Please shout if @xewl solution did not work. I am back from holidays, and will setup the project from the beginning to give it a thorough test again.

Thanks @xewl for the help :)

greenlevel commented 6 years ago

The composer update --lock worked.

My .env didnt have a key, so i did php artisan key:generate and i could continue.

I have the site working now.