php artisan命令没有生效

问题描述 投票:1回答:3

当我输入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$ 

日志文件是空的,与工匠无关。

新安装的应用程序上没有问题。运行composer update命令时的输出:

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]

似乎作曲家不能运行清楚编译,因为不工作的工匠,我不知道在哪里看。

任何帮助,将不胜感激。

laravel laravel-5 artisan
3个回答
1
投票

今天我在运行artisan命令时遇到了这个问题。在搜索没有让artisan命令执行的问题时,看到为了测试目的,在web.php文件中的routes路径文件夹中只存在写入的exit()。禁用exit()后,一切都在等待。我认为这是一个奇怪的问题,但这解决了我的问题。


0
投票

我不能发表评论。所以,要注意这件事:


0
投票

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

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

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

© www.soinside.com 2019 - 2024. All rights reserved.