Files
DredgeTours/app/Providers/AppServiceProvider.php
2025-09-15 11:44:26 +10:00

29 lines
518 B
PHP

<?php
namespace App\Providers;
use App\Models\Continent;
use Illuminate\Support\ServiceProvider;
use Inertia\Inertia;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
//
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
Inertia::share([
'continents_with_tours' => fn() => Continent::allContinentsWithTours(),
]);
}
}