D5300
D5300
FFilament
Created by D5300 on 4/8/2025 in #❓┊help
Field is hidden test - Pest
public function form(Form $form): Form
{
$companies = Company::getActiveUserCompanies()->toArray();

return $form
->columns(1)
->schema([
Select::make('company_id')
->placeholder('Placeholder text')
->default('new')
->required()
->live()
->reactive()
->hidden(empty($companies))
->selectablePlaceholder(false)
->options(fn() => [
'new' => 'Create new company',
'My companies' => $companies,
]),

TextInput::make('company_name')
->label('Company name')
->visible(function (Get $get) use ($companies) {
if (empty($companies)) {
return true;
}

return $get('company_id') === 'new';
})
->required(),

TextInput::make('domain')->rules('required'),
,
]);
}
public function form(Form $form): Form
{
$companies = Company::getActiveUserCompanies()->toArray();

return $form
->columns(1)
->schema([
Select::make('company_id')
->placeholder('Placeholder text')
->default('new')
->required()
->live()
->reactive()
->hidden(empty($companies))
->selectablePlaceholder(false)
->options(fn() => [
'new' => 'Create new company',
'My companies' => $companies,
]),

TextInput::make('company_name')
->label('Company name')
->visible(function (Get $get) use ($companies) {
if (empty($companies)) {
return true;
}

return $get('company_id') === 'new';
})
->required(),

TextInput::make('domain')->rules('required'),
,
]);
}
3 replies
FFilament
Created by D5300 on 4/2/2025 in #❓┊help
Guidance custom field
@Lara Zeus you think it will fit for my project? Basically its a component that depends on data from the form which has to be rendered for a preview. Something like the Section class would do
5 replies
FFilament
Created by D5300 on 1/13/2024 in #❓┊help
Vue 3 in custom page
You guys made a beautiful piece of code 🫶
20 replies
FFilament
Created by D5300 on 1/13/2024 in #❓┊help
Vue 3 in custom page
I created a new route with a custom view. Added sanctum. I need the entire screen so this way I got all the flexibility
20 replies
FFilament
Created by D5300 on 1/13/2024 in #❓┊help
Vue 3 in custom page
Filament is much more powerful and fulfilling my needs. I solved this differently
20 replies
FFilament
Created by D5300 on 1/13/2024 in #❓┊help
Vue 3 in custom page
That’s why I’m about to create a new one
20 replies
FFilament
Created by D5300 on 1/13/2024 in #❓┊help
Vue 3 in custom page
Doesn’t fit my needs
20 replies
FFilament
Created by D5300 on 1/13/2024 in #❓┊help
Vue 3 in custom page
Creating all the resources which are about 34 different ones, is perfect with filament. I only need a calendar
20 replies
FFilament
Created by D5300 on 1/13/2024 in #❓┊help
Vue 3 in custom page
Why doesn’t it make sense? Using vue for a small “spa” in the application is faster then livewire
20 replies
FFilament
Created by D5300 on 1/13/2024 in #❓┊help
Vue 3 in custom page
I’m thinking about injecting the app.js in to the footer but then the file loads every page
20 replies
FFilament
Created by D5300 on 1/13/2024 in #❓┊help
Vue 3 in custom page
Do you also know how?
20 replies