Laravel - Artisan not working Laravel - Artisan not working laravel laravel

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.


You need to run composer install, so the composer refresh all dependencies, artisan's begin on the middle. That should do the job!


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();}