我正在使用Laravel 5并想使用barryvdh/laravel-debugbar.安装和配置后,栏未显示.
我做了以下事情:
安装:
composer require barryvdh/laravel-debugbar
Run Code Online (Sandbox Code Playgroud)
将以下行添加到config/app.php
'Barryvdh\Debugbar\ServiceProvider',
'Debugbar' => 'Barryvdh\Debugbar\Facade',
Run Code Online (Sandbox Code Playgroud)
我还执行:
php artisan vendor:publish
Run Code Online (Sandbox Code Playgroud)
在config文件夹中生成debugbar.php文件.
什么想法可能会丢失?
谢谢
更新:
我做了一个新的Laravel 5安装并安装了完美的调试栏并显示了我的调试栏.执行工匠命令后:
php artisan cache:clear
Run Code Online (Sandbox Code Playgroud)
和
php artisan config:cache
Run Code Online (Sandbox Code Playgroud)
调试栏不再可见.我认为这也是我上一个问题的问题.任何想法为什么会发生这种情况以及我如何使调试条可以重新检查?谢谢
在SilverStripe 3.1中,是否可以覆盖SilverStripe徽标和左侧CMS顶部显示的URL(而不是替换它)?
我想在我的HTML网站的CSS中的font-family属性中使用googles"source sans pro"字体.我使用Bootstrap作为前端框架.
https://www.google.com/fonts/specimen/Source+Sans+Pro
我怎样才能做到这一点?我是否必须将该文件包含在我的html网站中?
感谢您的任何帮助!
我使用Laravel 5.1,我想使用以下软件包:https: //github.com/mcamara/laravel-localization
我将此代码添加到我的route.php文件中:
Route::group(['prefix' => LaravelLocalization::setLocale()], function()
{
/** ADD ALL LOCALIZED ROUTES INSIDE THIS GROUP **/
Route::get('/', function()
{
return View::make('hello');
});
Route::get('test',function(){
return View::make('test');
});
});
Run Code Online (Sandbox Code Playgroud)
当调用url:localhost/test时,我得到以下异常:LaravelLocalization.php第119行中的UnsupportedLocaleException:Laravel默认语言环境不在supportedLocales数组中
有什么想法吗?谢谢
我使用silverstripe 3.1我想限制CMS中下拉列表中可用的语言(仅限德语和英语).因此,我将以下代码放在我的mysite/_config.php中
i18n::set_locale('de_DE');
$allowed_locales = array(
'de_DE' => array('Deutsch', 'Deutsch'),
'en_EN' => array('English', 'English')
);
i18n::$common_locales = $allowed_locales;
Run Code Online (Sandbox Code Playgroud)
刷新= 1我得到以下错误:致命错误:无法访问私有属性i18n :: $ common_locales in ... _config.php
任何想法出了什么问题?谢谢
如何设置基本网址?
在3.1的文档中写道:Director :: setBaseURL:改为使用Director.alternate_base_url
是否有任何放置Director.alternate_base_url的示例?
谢谢
我有这门课:
class Product extends DataObject {
static $db = array(
'Name' => 'Varchar',
'ProductType' => 'Varchar',
'Price' => 'Currency'
);
}
Run Code Online (Sandbox Code Playgroud)
数据库表如下所示:
---------------------------------
| Name | ProductType | Price |
|-----------+-------------+-------|
| Product 1 | Type1 | 100 |
| Product 2 | Type1 | 240 |
| Product 3 | Type2 | 10 |
| Product 4 | Type1 | 100 |
---------------------------------
Run Code Online (Sandbox Code Playgroud)
我想有2个模特管理员:
class MyFirstModel extends ModelAdmin {
public static $managed_models = array(
Product
);
}
class MySecondModel …Run Code Online (Sandbox Code Playgroud)