本文整理汇总了PHP中app\Setting::get方法的典型用法代码示例。如果您正苦于以下问题:PHP Setting::get方法的具体用法?PHP Setting::get怎么用?PHP Setting::get使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类app\Setting
的用法示例。
在下文中一共展示了Setting::get方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: balance_currency
/**
* Баланс пользователя в валюте пользователя
* @return float
*/
public function balance_currency()
{
$currency = $this->currency;
$course = Setting::get($currency . '_course', 1);
$balance = $this->balance / $course;
return $balance;
}
示例2: handle
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
if (\Auth::check()) {
\View::share('user', \Auth::user());
}
\View::share('title', Setting::get('title'));
\View::share('main', 0);
return $next($request);
}
示例3: __construct
public function __construct()
{
$balance = Auth::user()->balance_display();
view()->share('user_balance', $balance);
$products = Auth::user()->list_active_products;
view()->share('user_need_products', count($products));
$members = Setting::get('members', '23 541');
view()->share('members', $members);
$best_member = Setting::get('best_member', 'Andrey87 - 3 400 руб.');
view()->share('best_member', $best_member);
}
示例4: settings
/**
* Display a settings edition screen
*
* @return \Illuminate\Http\Response
*/
public function settings()
{
return view('settings.list')->with('homepage_presentation', \App\Setting::get('homepage_presentation'));
}