How to start a Laravel application.
php artisan serve –host 0.0.0.0
Have you tried running php artisan voyager:install
but you keep getting an error that a VoyagerServiceProvider.php file is missing.
All your artisan commands are also throwing this error too.
Checking the vendor folder, I found that the tcg/voyager folder was empty and after hours of research I found a solution:
Go to https://github.com/the-control-group/voyager and clone this repo .
Unzip this repo and copy the content of the src
folder into your vendor/tcg/voyager
folder.
Run composer dump-autoload
and php artisan cache:clear
to be sure nothing is being cached.
Run your php artisan voyager:install
command again.
When running laravel you get errors if redis is allowed in the .env file.
Use this command to install php extensions
sudo apt install php php-cli php-common php-json php-zip php-gd php-mbstring php-curl php-xml php-bcmath php-json php-pdo php-tokenizer php-xmlwriter php-ctype php-json php-bz2 php-zip php-dom