2

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.

4

3 回答 3

1

今天我在运行 artisan 命令时遇到了这个问题。在搜索不让执行工匠命令的问题时,看到仅出于测试目的而编写exit()的存在于 web.php 文件的路由文件夹中。禁用exit()一切后,一切都在等待。我认为这是一个奇怪的问题,但这解决了我的问题。

于 2019-01-29T13:05:49.800 回答
0

我不能发表评论。所以,请注意这些事情:

于 2015-02-18T14:14:53.263 回答
0

这是配置文件的问题。我已经安装了面包屑包,它的配置导致了它。

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

我用下面的代码改变了它,它开始工作了。

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

我的申请没有区别,但工匠没有区别。

于 2015-02-27T15:47:05.087 回答