30 lines
554 B
PHP
30 lines
554 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Models\Page;
|
|
use App\Observers\PageObserver;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
setlocale(LC_ALL, 'tr_TR.UTF-8', 'tr_TR', 'turkish');
|
|
|
|
// Page model için observer kaydet
|
|
Page::observe(PageObserver::class);
|
|
}
|
|
}
|