n0nsensei95
n0nsensei95
FFilament
Created by n0nsensei95 on 2/13/2024 in #❓┊help
Set other form fields from within a Livewire component as field
How can i set the value of a form field from a livewire component that is inside a form.
public static function form(Form $form): Form
{
return $form
->schema([
Forms\Components\Section::make('')
->compact()
->columnSpan(1)
->columns(2)
->schema([
Forms\Components\Livewire::make(LiveSearchComponent::class),

Forms\Components\TextInput::make('name')
])

//Livewire component
class LiveSearchComponent extends Component
{
public function render()
{
return view('livewire.live-search-component');
}
}
public static function form(Form $form): Form
{
return $form
->schema([
Forms\Components\Section::make('')
->compact()
->columnSpan(1)
->columns(2)
->schema([
Forms\Components\Livewire::make(LiveSearchComponent::class),

Forms\Components\TextInput::make('name')
])

//Livewire component
class LiveSearchComponent extends Component
{
public function render()
{
return view('livewire.live-search-component');
}
}
how do i access the $form inside LiveSearchComponent, i want to set 'name' field from within LiveSearchComponent. Is there a way to do it?
4 replies
FFilament
Created by n0nsensei95 on 10/29/2023 in #❓┊help
create route outside of tenant
Hi guys, I'm creating a Saas app using FIlament php and I love it, but one thing, I need to create a page outside of tenant with simple layout, like Login or Profile page, but couldn't get the route to register properly. When i change the Page class to SimplePage, i am getting 404 error and route is missing from route:list. Any ideas? By the way the Page is not under any resource.
4 replies