so I have installed a fresh copy of Laravel and want it to resemble (exactly) an existing project on my other server.
My goal is to have a development server and a production server, and I wanted to use git to track changes and push code.
My problem is when I manage to get the github code onto the new, fresh Laravel install it ruins that Laravel installation. Middleware, artisan commands and other things all seem to break, and I have tried this multiple times.
I am looking for someone to provide me steps to get my github code onto the fresh install without breaking it.
If there is a way to get a directory at a time, so I can test what is breaking it, that would be good too. I think what was happening before was that composer and the auto-loaders were not handling the new code from github properly.
I did this: https://stackoverflow.com/a/8888015/4942980 but it led to this: Laravel 5 Seeder Class Does Not Exist
I can provide more information upon request if this isn't helpful.
EDIT: I clone my github Laravel application code by doing git clone
I then install laravel using composer update
in that directory and it breaks php artisan
.
PHP Fatal error: Uncaught InvalidArgumentException: The "" directory does not exist. in /var/www/laravel/vendor/symfony/finder/Finder.php:546
Stack trace:
#0 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php(76): Symfony\Component\Finder\Finder->in(false)
#1 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php(59): Illuminate\Foundation\Bootstrap\LoadConfiguration->getConfigurationFiles(Object(Illuminate\Foundation\Application))
#2 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php(38): Illuminate\Foundation\Bootstrap\LoadConfiguration->loadConfigurationFiles(Object(Illuminate\Foundation\Application), Object(Illuminate\Config\Repository))
#3 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(203): Illuminate\Foundation\Bootstrap\LoadConfiguration->bootstrap(Object(Illuminate\Foundation\Application))
#4 /var/www/laravel/vendor/laravel/framework/src/Il in /var/www/laravel/vendor/symfony/finder/Finder.php on line 546