class SubscribePage extends SimplePage
{
use InteractsWithFormActions;
use HasRoutes;
protected static ?string $navigationIcon = 'heroicon-o-document-text';
protected static string $view = 'filament.app.pages.subscribe-page';
public static function getSlug(): string
{
return static::$slug ?? 'subscribe-page';
}
public static function routes(Panel $panel): void
{
$slug = static::getSlug();
Route::get("/{$slug}", static::class)
->middleware(static::getRouteMiddleware($panel))
->withoutMiddleware(static::getWithoutRouteMiddleware($panel))
->name('subscribe-page');
}
public static function getRouteMiddleware(Panel $panel): string|array
{
return [
...(static::isEmailVerificationRequired($panel) ? [static::getEmailVerifiedMiddleware($panel)] : []),
...Arr::wrap(static::$routeMiddleware),
];
}
}