Laravel - Artisan not working
Generally speaking, the vendor
directory is not committed to VCS, as such, doing a clone on a standard Laravel app won't include all its dependencies.
Once you have cloned, doing composer install
(or composer update
if you want the latest packages as a developer) will fetch the dependencies and allow your app to work.
My artisan was not working because i had the following lines in my routes.php
if(!isset($_SESSION['c_id'])) { header("Location: /login_page.php"); exit();}
I simply commented the exit(). So my code becomes as follows
if(!isset($_SESSION['c_id'])) { header("Location: /login_page.php");// exit();}