Okay, so apparently no one has had this problem since i can't find some one with the same issue as mine on the internet.
I have created a Laravel 5.3 project on my local machine and remote server and they work perfectly.
I created a repo in GitHub for the Laravel project and pushed the whole project to the repository. I cloned the repository to a different server and suddenly
composer install and
php artisan are breaking.
When i try to run
php artisan it gives me this error:
Could not open input file: artisan.
And when i try to run
php composer.phar install or
php composer.phar update it gives me this error:
Could not open input file: artisan Script php artisan optimize handling the post-update-cmd event returned with error code 1
Any idea what's wrong? which files are required in the Laravel project to run artisan because i am pretty sure i included all the necessary ones. Thanks.
Try to remove the
bootstrap/cache/config.php file. Then run again.
composer dumpautoload composer update
This may work for you.