Laravel - Artisan not working
up vote
18
down vote
favorite
I'm aware of the other questions out there, but they are different to my situation.
I installed a fresh copy of my own laravel, and I tried running php artisan list, which works.
Now, I have a colleague who has installed a copy of laravel himself, and he pushes his entire directory onto a git repository. I pulled the entire branch off the repository, and tried running php artisan list, but nothing happens this time. I mean, literally, nothing happens.
Any ideas as to why this is happening?
php git laravel laravel-4
|
show 3 more comments
up vote
18
down vote
favorite
I'm aware of the other questions out there, but they are different to my situation.
I installed a fresh copy of my own laravel, and I tried running php artisan list, which works.
Now, I have a colleague who has installed a copy of laravel himself, and he pushes his entire directory onto a git repository. I pulled the entire branch off the repository, and tried running php artisan list, but nothing happens this time. I mean, literally, nothing happens.
Any ideas as to why this is happening?
php git laravel laravel-4
1
Have you runcomposer installafter cloning the repo? That said, I wouldn't expect nothing to happen if the error was as bad as being unable to load in files (though it could depend on your display_error settings).
– alexrussell
Feb 19 '14 at 14:15
UNIX/Windows/OSX? Are you pushingcomposer.phartoo?
– Sergiu Paraschiv
Feb 19 '14 at 14:16
@Sergiu I'm using OSX.
– He Hui
Feb 19 '14 at 14:19
@Alexrussell I'm supposed to run composer install? Sorry I'm new to working with laravel/command line in php
– He Hui
Feb 19 '14 at 14:19
1
Yes.composer installdownloads the dependencies you defined incomposer.jsonin yourvendorfolder that you do not push to git. Artisan is part of thelaravelpackage that's a dependency.
– Sergiu Paraschiv
Feb 19 '14 at 14:27
|
show 3 more comments
up vote
18
down vote
favorite
up vote
18
down vote
favorite
I'm aware of the other questions out there, but they are different to my situation.
I installed a fresh copy of my own laravel, and I tried running php artisan list, which works.
Now, I have a colleague who has installed a copy of laravel himself, and he pushes his entire directory onto a git repository. I pulled the entire branch off the repository, and tried running php artisan list, but nothing happens this time. I mean, literally, nothing happens.
Any ideas as to why this is happening?
php git laravel laravel-4
I'm aware of the other questions out there, but they are different to my situation.
I installed a fresh copy of my own laravel, and I tried running php artisan list, which works.
Now, I have a colleague who has installed a copy of laravel himself, and he pushes his entire directory onto a git repository. I pulled the entire branch off the repository, and tried running php artisan list, but nothing happens this time. I mean, literally, nothing happens.
Any ideas as to why this is happening?
php git laravel laravel-4
php git laravel laravel-4
edited May 23 '17 at 12:26
Community♦
11
11
asked Feb 19 '14 at 14:07
He Hui
1,38441841
1,38441841
1
Have you runcomposer installafter cloning the repo? That said, I wouldn't expect nothing to happen if the error was as bad as being unable to load in files (though it could depend on your display_error settings).
– alexrussell
Feb 19 '14 at 14:15
UNIX/Windows/OSX? Are you pushingcomposer.phartoo?
– Sergiu Paraschiv
Feb 19 '14 at 14:16
@Sergiu I'm using OSX.
– He Hui
Feb 19 '14 at 14:19
@Alexrussell I'm supposed to run composer install? Sorry I'm new to working with laravel/command line in php
– He Hui
Feb 19 '14 at 14:19
1
Yes.composer installdownloads the dependencies you defined incomposer.jsonin yourvendorfolder that you do not push to git. Artisan is part of thelaravelpackage that's a dependency.
– Sergiu Paraschiv
Feb 19 '14 at 14:27
|
show 3 more comments
1
Have you runcomposer installafter cloning the repo? That said, I wouldn't expect nothing to happen if the error was as bad as being unable to load in files (though it could depend on your display_error settings).
– alexrussell
Feb 19 '14 at 14:15
UNIX/Windows/OSX? Are you pushingcomposer.phartoo?
– Sergiu Paraschiv
Feb 19 '14 at 14:16
@Sergiu I'm using OSX.
– He Hui
Feb 19 '14 at 14:19
@Alexrussell I'm supposed to run composer install? Sorry I'm new to working with laravel/command line in php
– He Hui
Feb 19 '14 at 14:19
1
Yes.composer installdownloads the dependencies you defined incomposer.jsonin yourvendorfolder that you do not push to git. Artisan is part of thelaravelpackage that's a dependency.
– Sergiu Paraschiv
Feb 19 '14 at 14:27
1
1
Have you run
composer install after cloning the repo? That said, I wouldn't expect nothing to happen if the error was as bad as being unable to load in files (though it could depend on your display_error settings).– alexrussell
Feb 19 '14 at 14:15
Have you run
composer install after cloning the repo? That said, I wouldn't expect nothing to happen if the error was as bad as being unable to load in files (though it could depend on your display_error settings).– alexrussell
Feb 19 '14 at 14:15
UNIX/Windows/OSX? Are you pushing
composer.phar too?– Sergiu Paraschiv
Feb 19 '14 at 14:16
UNIX/Windows/OSX? Are you pushing
composer.phar too?– Sergiu Paraschiv
Feb 19 '14 at 14:16
@Sergiu I'm using OSX.
– He Hui
Feb 19 '14 at 14:19
@Sergiu I'm using OSX.
– He Hui
Feb 19 '14 at 14:19
@Alexrussell I'm supposed to run composer install? Sorry I'm new to working with laravel/command line in php
– He Hui
Feb 19 '14 at 14:19
@Alexrussell I'm supposed to run composer install? Sorry I'm new to working with laravel/command line in php
– He Hui
Feb 19 '14 at 14:19
1
1
Yes.
composer install downloads the dependencies you defined in composer.json in your vendor folder that you do not push to git. Artisan is part of the laravel package that's a dependency.– Sergiu Paraschiv
Feb 19 '14 at 14:27
Yes.
composer install downloads the dependencies you defined in composer.json in your vendor folder that you do not push to git. Artisan is part of the laravel package that's a dependency.– Sergiu Paraschiv
Feb 19 '14 at 14:27
|
show 3 more comments
5 Answers
5
active
oldest
votes
up vote
17
down vote
accepted
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.
add a comment |
up vote
5
down vote
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();
add a comment |
up vote
4
down vote
You need to run composer install, so the composer refresh all dependencies, artisan's begin on the middle. That should do the job!
add a comment |
up vote
1
down vote
Just to point out some thing to anyone struggling with artisan, as this answer is 1st link in google to artisan CLI empty line:
It will print blank line whenever some error happens, even if you have all dependencies installed with composer install. And it won't tell you exactly what is wrong. I couldn't figure it out until I put into artisan file in the root directory this:
ini_set('display_errors',1);
error_reporting(-1);
That forced artisan CLI to show error message and therefore I was able to fix it (my .env file was broken).
Hope this helps someone.
add a comment |
up vote
0
down vote
In my case problem was to connect artisan with database (migrates) i.e. the command
$php artisan migrate
was not working.
I was running laravel project on 8888 port.
In this case I updated .env file as:
DB_HOST=localhost to DB_HOST=localhost to DB_HOST=127.0.0.1
and DB_PORT=3306 to DB_PORT=8889
Cleared cache by running artisan command and run the migrates:
php artisan config:clear
php artisan migrate
add a comment |
5 Answers
5
active
oldest
votes
5 Answers
5
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
17
down vote
accepted
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.
add a comment |
up vote
17
down vote
accepted
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.
add a comment |
up vote
17
down vote
accepted
up vote
17
down vote
accepted
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.
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.
answered Feb 19 '14 at 15:16
alexrussell
8,39432540
8,39432540
add a comment |
add a comment |
up vote
5
down vote
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();
add a comment |
up vote
5
down vote
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();
add a comment |
up vote
5
down vote
up vote
5
down vote
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();
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();
answered May 23 '16 at 6:35
Himanshu
10017
10017
add a comment |
add a comment |
up vote
4
down vote
You need to run composer install, so the composer refresh all dependencies, artisan's begin on the middle. That should do the job!
add a comment |
up vote
4
down vote
You need to run composer install, so the composer refresh all dependencies, artisan's begin on the middle. That should do the job!
add a comment |
up vote
4
down vote
up vote
4
down vote
You need to run composer install, so the composer refresh all dependencies, artisan's begin on the middle. That should do the job!
You need to run composer install, so the composer refresh all dependencies, artisan's begin on the middle. That should do the job!
answered Feb 19 '14 at 14:44
Dennis Braga
86311535
86311535
add a comment |
add a comment |
up vote
1
down vote
Just to point out some thing to anyone struggling with artisan, as this answer is 1st link in google to artisan CLI empty line:
It will print blank line whenever some error happens, even if you have all dependencies installed with composer install. And it won't tell you exactly what is wrong. I couldn't figure it out until I put into artisan file in the root directory this:
ini_set('display_errors',1);
error_reporting(-1);
That forced artisan CLI to show error message and therefore I was able to fix it (my .env file was broken).
Hope this helps someone.
add a comment |
up vote
1
down vote
Just to point out some thing to anyone struggling with artisan, as this answer is 1st link in google to artisan CLI empty line:
It will print blank line whenever some error happens, even if you have all dependencies installed with composer install. And it won't tell you exactly what is wrong. I couldn't figure it out until I put into artisan file in the root directory this:
ini_set('display_errors',1);
error_reporting(-1);
That forced artisan CLI to show error message and therefore I was able to fix it (my .env file was broken).
Hope this helps someone.
add a comment |
up vote
1
down vote
up vote
1
down vote
Just to point out some thing to anyone struggling with artisan, as this answer is 1st link in google to artisan CLI empty line:
It will print blank line whenever some error happens, even if you have all dependencies installed with composer install. And it won't tell you exactly what is wrong. I couldn't figure it out until I put into artisan file in the root directory this:
ini_set('display_errors',1);
error_reporting(-1);
That forced artisan CLI to show error message and therefore I was able to fix it (my .env file was broken).
Hope this helps someone.
Just to point out some thing to anyone struggling with artisan, as this answer is 1st link in google to artisan CLI empty line:
It will print blank line whenever some error happens, even if you have all dependencies installed with composer install. And it won't tell you exactly what is wrong. I couldn't figure it out until I put into artisan file in the root directory this:
ini_set('display_errors',1);
error_reporting(-1);
That forced artisan CLI to show error message and therefore I was able to fix it (my .env file was broken).
Hope this helps someone.
answered Mar 7 at 11:46
pixelgoo
364
364
add a comment |
add a comment |
up vote
0
down vote
In my case problem was to connect artisan with database (migrates) i.e. the command
$php artisan migrate
was not working.
I was running laravel project on 8888 port.
In this case I updated .env file as:
DB_HOST=localhost to DB_HOST=localhost to DB_HOST=127.0.0.1
and DB_PORT=3306 to DB_PORT=8889
Cleared cache by running artisan command and run the migrates:
php artisan config:clear
php artisan migrate
add a comment |
up vote
0
down vote
In my case problem was to connect artisan with database (migrates) i.e. the command
$php artisan migrate
was not working.
I was running laravel project on 8888 port.
In this case I updated .env file as:
DB_HOST=localhost to DB_HOST=localhost to DB_HOST=127.0.0.1
and DB_PORT=3306 to DB_PORT=8889
Cleared cache by running artisan command and run the migrates:
php artisan config:clear
php artisan migrate
add a comment |
up vote
0
down vote
up vote
0
down vote
In my case problem was to connect artisan with database (migrates) i.e. the command
$php artisan migrate
was not working.
I was running laravel project on 8888 port.
In this case I updated .env file as:
DB_HOST=localhost to DB_HOST=localhost to DB_HOST=127.0.0.1
and DB_PORT=3306 to DB_PORT=8889
Cleared cache by running artisan command and run the migrates:
php artisan config:clear
php artisan migrate
In my case problem was to connect artisan with database (migrates) i.e. the command
$php artisan migrate
was not working.
I was running laravel project on 8888 port.
In this case I updated .env file as:
DB_HOST=localhost to DB_HOST=localhost to DB_HOST=127.0.0.1
and DB_PORT=3306 to DB_PORT=8889
Cleared cache by running artisan command and run the migrates:
php artisan config:clear
php artisan migrate
answered Nov 10 at 22:03
Zia
213
213
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f21882897%2flaravel-artisan-not-working%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Have you run
composer installafter cloning the repo? That said, I wouldn't expect nothing to happen if the error was as bad as being unable to load in files (though it could depend on your display_error settings).– alexrussell
Feb 19 '14 at 14:15
UNIX/Windows/OSX? Are you pushing
composer.phartoo?– Sergiu Paraschiv
Feb 19 '14 at 14:16
@Sergiu I'm using OSX.
– He Hui
Feb 19 '14 at 14:19
@Alexrussell I'm supposed to run composer install? Sorry I'm new to working with laravel/command line in php
– He Hui
Feb 19 '14 at 14:19
1
Yes.
composer installdownloads the dependencies you defined incomposer.jsonin yourvendorfolder that you do not push to git. Artisan is part of thelaravelpackage that's a dependency.– Sergiu Paraschiv
Feb 19 '14 at 14:27