PATH:
home
/
lab2454c
/
vaultchip.com
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Support
/
Traits
<?php namespace Illuminate\Support\Traits; use Illuminate\Container\Container; trait Localizable { /** * Run the callback with the given locale. * * @param string $locale * @param \Closure $callback * @return mixed */ public function withLocale($locale, $callback) { if (! $locale) { return $callback(); } $app = Container::getInstance(); $original = $app->getLocale(); try { $app->setLocale($locale); return $callback(); } finally { $app->setLocale($original); } } }
[-] ForwardsCalls.php
[edit]
[+]
..
[-] Tappable.php
[edit]
[-] Conditionable.php
[edit]
[-] ReflectsClosures.php
[edit]
[-] CapsuleManagerTrait.php
[edit]
[-] Localizable.php
[edit]