包扩展
Laravel 5 本地化Composer包开发步骤
JasonLaravel 发表了文章 • 1 个评论 • 4295 次浏览 • 2015-03-31 16:55
自己创建包的问题,按照步骤做的,找不到对应的类,求助!
00幽靈00 回复了问题 • 2 人关注 • 1 个回复 • 3139 次浏览 • 2014-09-04 10:45
{{{
<?php namespace Liuxk\Battle\Facades;
use Illuminate\Support\Facades\Facade;
class Battle extends Facade{
protected stati... 显示全部 »
<?php namespace Liuxk\Battle\Facades;
use Illuminate\Support\Facades\Facade;
class Battle extends Facade{
protected stati... 显示全部 »
{{{
<?php namespace Liuxk\Battle\Facades;
use Illuminate\Support\Facades\Facade;
class Battle extends Facade{
protected static function getFacadeAccessor(){
return 'battle!';
}
}
}}}
替换成
{{{
<?php namespace Liuxk\Battle\Facades;
use Illuminate\Support\Facades\Facade;
class Battle extends Facade{
protected static function getFacadeAccessor(){
return 'Battle';
}
}
}}}
试试这样。
<?php namespace Liuxk\Battle\Facades;
use Illuminate\Support\Facades\Facade;
class Battle extends Facade{
protected static function getFacadeAccessor(){
return 'battle!';
}
}
}}}
替换成
{{{
<?php namespace Liuxk\Battle\Facades;
use Illuminate\Support\Facades\Facade;
class Battle extends Facade{
protected static function getFacadeAccessor(){
return 'Battle';
}
}
}}}
试试这样。
Laravel 5 本地化Composer包开发步骤
JasonLaravel 发表了文章 • 1 个评论 • 4295 次浏览 • 2015-03-31 16:55