如何安装Laravel 4 Profiler [英] How to install Laravel 4 profiler
问题描述
我是Ubuntu/git/composer noob,我正在尝试遵循安装说明这里.
I'm a Ubuntu/git/composer noob, and I'm trying to follow the installation instructions here.
运行php artisan config:publish loic-sharma/profiler
命令后,出现以下错误:
After running the php artisan config:publish loic-sharma/profiler
command I get the following error:
PHP Fatal error: Class 'Profiler\ProfilerServiceProvider' not found in /var/www/epcr/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php on line 158
我假设问题是我尚未下载代码,但是我不确定如何执行该操作.
I'm assuming the problem is that I haven't downloaded the code, but I'm not exactly sure how to go about doing that.
推荐答案
大多数软件包都要求您在 app/config/app.php 中手动添加服务提供商.内部有一系列提供程序. 一些提供程序还需要外观别名.
Most packages require you to manually add service provider in app/config/app.php. There is an array of providers inside. Some providers require also facade alias.
因此,请看一下文档,如果它是提供者,则应将其记录在文档中.
So take a look at documentation, if it is provider, then it should be documented.
例如
'Miro\JSONSuite\JSONSuiteServiceProvider'
这篇关于如何安装Laravel 4 Profiler的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!