1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-24 23:37:51 +01:00
openstamanager/app/Providers/AppServiceProvider.php
Maicol Battistini 5a1576d3c8
refactor: ♻️ Sistemazione e riformattazione del codice
- Fix typography mancante
- Fix icona nel FAB
- Fixati alcuni stili nel tema "Alto contrasto"
- Riformattazione del codice
2021-11-09 10:34:22 +01:00

32 lines
642 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::encode(
Json::decode(file_get_contents(resource_path('lang/'.app()->getLocale().'.json')))
)
);
}
}