mirror of
https://github.com/brunofontes/shareit.git
synced 2024-11-23 20:10:52 +00:00
Refactoring: just including "use App" to make code a bit cleaner
I was using "\App::setLocale" on code, but it was annoind me. So I included the "use App" and now I am colling directly the "App::setLocale".
This commit is contained in:
parent
1e1c178214
commit
82a8bcb7a2
@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use App;
|
||||
use Closure;
|
||||
|
||||
class Locale
|
||||
@ -15,7 +16,7 @@ class Locale
|
||||
*/
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
\App::setLocale(session('lang'));
|
||||
App::setLocale(session('lang'));
|
||||
return $next($request);
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Mail;
|
||||
|
||||
use Lang;
|
||||
use \App\Item;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Mail\Mailable;
|
||||
@ -35,7 +36,7 @@ class UserWaiting extends Mailable
|
||||
public function build()
|
||||
{
|
||||
return $this->subject(
|
||||
\Lang::getFromJson(
|
||||
Lang::getFromJson(
|
||||
':waitinguser wants to use :itemname',
|
||||
[
|
||||
'waitinguser' => $this->waitingUser,
|
||||
|
Loading…
Reference in New Issue
Block a user