UAMoto
UAMoto

Reputation: 271

php artisan commands not taking effect

Not a single command working when I type php artisan "command".

Last login: Mon Feb 16 20:17:50 on ttys000
Pro:~ nzrv$ cd ~/Sites/t
Pro:t nzrv$ php artisan --version
Pro:t nzrv$ php artisan make:controller PagesController
Pro:t nzrv$ php artisan
Pro:t nzrv$ 

Log files are empty, nothing related to artisan.

Problem not present on a newly installed apps. Output when I run composer update command:

Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
Script php artisan clear-compiled handling the post-update-cmd event returned with an error
[RuntimeException]
Error Output:

update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [packages1] ... [packagesN]

It seems composer can't run clear-compiled because of not working artisan and I don't know where to look.

Any help would be appreciated.

Upvotes: 2

Views: 5322

Answers (3)

WebMan
WebMan

Reputation: 384

Today I have faced this issue when running artisan command. While searching what is the problem to not let artisan command to be executed saw that for test purpose only written exit() exist in my routes folder in web.php file. And after disabling exit() everything worked as waited. I think that is weird issue but this solved my problem.

Upvotes: 1

UAMoto
UAMoto

Reputation: 271

It was an issue with config file. I've installed breadcrumbs package and it's config was causing it.

return array(
    'separator' => '&nbsp;<img src="'.asset('img/breadcrumbsDivider.gif').'">&nbsp;',
    'view'  => 'frontend/breadcrumbs',
    'min_depth' => 2,
    'last_linkable' => false
);

I've changed it with following code and it started working.

return array(
    'separator' => '&nbsp;<img src="/img/breadcrumbsDivider.gif">&nbsp;',
    'view'  => 'frontend/breadcrumbs',
    'min_depth' => 2,
    'last_linkable' => false
);

There is was not difference to my application but not for artisan.

Upvotes: 0

Santiago Mendoza Ramirez
Santiago Mendoza Ramirez

Reputation: 1657

I can't do comments. So, take care this things:

Upvotes: 0

Related Questions