30 lines
554 B
PHP
30 lines
554 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Models\Continent;
|
|
use Illuminate\Support\Facades\URL;
|
|
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(),
|
|
]);
|
|
}
|
|
}
|