32 lines
638 B
PHP
32 lines
638 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Jobs\SendTelegramNotificationJob;
|
|
use Carbon\Carbon;
|
|
use GuzzleHttp\Client;
|
|
use GuzzleHttp\ClientInterface;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
$this->app->bind(ClientInterface::class, Client::class);
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
config(['app.locale' => 'id']);
|
|
Carbon::setLocale('id');
|
|
|
|
}
|
|
}
|