n0nsensei95
n0nsensei95
FFilament
Created by n0nsensei95 on 2/13/2024 in #❓┊help
Set other form fields from within a Livewire component as field
not exactly, i want access the form/livewire outside of LiveSearchComponent, not the actual record
4 replies
FFilament
Created by n0nsensei95 on 10/29/2023 in #❓┊help
create route outside of tenant
This is my page class
4 replies
FFilament
Created by n0nsensei95 on 10/29/2023 in #❓┊help
create route outside of tenant
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),
];
}

}
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),
];
}

}
4 replies