29 lines
558 B
PHP
29 lines
558 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Models\DataWisata;
|
|
use Illuminate\Support\Facades\View;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*/
|
|
public function boot()
|
|
{
|
|
// Membagikan countWisata ke seluruh view
|
|
// $countWisata = DataWisata::count();
|
|
// View::share('countWisata', $countWisata);
|
|
}
|
|
}
|