mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-24 23:37:51 +01:00
30 lines
598 B
PHP
30 lines
598 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Exception;
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Nette\Utils\Json;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
* @throws Exception
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
cache()->rememberForever(
|
|
'translations_'.app()->getLocale(),
|
|
fn () => Json::decode(file_get_contents(resource_path('lang/'.app()->getLocale().'.json')))
|
|
);
|
|
}
|
|
}
|