-
app/Providers/AppServiceProvider.php
Open in GitHubuse Illuminate\Support\ServiceProvider; use Illuminate\Support\Facades\URL; use Illuminate\Support\Str; class AppServiceProvider extends ServiceProvider { // public function boot(): void { // URL::macro('filament', function (string $uri): string { if (config('filament.domain') !== null) { $this->forceRootUrl(config('filament.domain')); } return tap( $this->to(Str::start( trim($uri, '/'), Str::finish(config('filament.path'), '/') )), fn () => $this->forceRootUrl(config('app.url')) ); }); // } }