koel/app/Providers/UtilServiceProvider.php

15 lines
274 B
PHP
Raw Normal View History

2015-12-17 17:56:48 +00:00
<?php
namespace App\Providers;
use App\Services\Util;
use Illuminate\Support\ServiceProvider;
class UtilServiceProvider extends ServiceProvider
{
2018-08-29 04:06:17 +00:00
public function register(): void
2015-12-17 17:56:48 +00:00
{
2021-06-05 10:47:56 +00:00
app()->singleton('Util', static fn (): Util => app(Util::class));
2015-12-17 17:56:48 +00:00
}
}