koel/app/Providers/UtilServiceProvider.php
2021-06-05 12:47:56 +02:00

14 lines
274 B
PHP

<?php
namespace App\Providers;
use App\Services\Util;
use Illuminate\Support\ServiceProvider;
class UtilServiceProvider extends ServiceProvider
{
public function register(): void
{
app()->singleton('Util', static fn (): Util => app(Util::class));
}
}