X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/vendor/illuminate/support/Traits
home
/
gfecatvj
/
sites
/
vendor
/
illuminate
/
support
/
Traits
/
📁
..
📄
CapsuleManagerTrait.php
(1.4 KB)
📄
EnumeratesValues.php
(24.6 KB)
📄
ForwardsCalls.php
(1.34 KB)
📄
Localizable.php
(629 B)
📄
Macroable.php
(2.7 KB)
📄
ReflectsClosures.php
(1.43 KB)
📄
Tappable.php
(315 B)
Editing: Localizable.php
<?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); } } }
Upload File
Create Folder