21 lines
365 B
PHP
21 lines
365 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Services\ApiService;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
public function register()
|
|
{
|
|
$this->app->singleton(ApiService::class, function () {
|
|
return new ApiService();
|
|
});
|
|
}
|
|
|
|
public function boot()
|
|
{
|
|
// ...
|
|
}
|
|
} |