AsuranDex
AsuranDex
FFilament
Created by AsuranDex on 10/10/2024 in #❓┊help
Alpine Error on Tenant Switcher Dropdown
im a dumb dumb, thank you
4 replies
FFilament
Created by AsuranDex on 11/5/2023 in #❓┊help
Issue with Pivot relation on Repeater
AHHH, always a bloody typo xD. I put 'travellers' on the select component and 'traveller' on the pivot model... Thank you, problem solved xD
8 replies
FFilament
Created by AsuranDex on 11/5/2023 in #❓┊help
Issue with Pivot relation on Repeater
Ok, swapped it to a "normal" repeater:
Forms\Components\Repeater::make('requestTravellers')
->relationship()
->columnSpanFull()
->reorderable(0)
->addActionLabel('Select another Traveller')
->schema([
Forms\Components\Select::make('traveller_id')
->relationship(
name: 'travellers',
titleAttribute: 'first_name',
modifyQueryUsing: fn(Builder $query) => $query->where('company_id', Auth::user()->company_id)
)
->getOptionLabelFromRecordUsing(fn(Model $record) => "{$record->full_name} | {$record->email}")
->createOptionForm(fn(Form $form) => TravellerResource::form($form))
->required(),
])
->grid(2),
Forms\Components\Repeater::make('requestTravellers')
->relationship()
->columnSpanFull()
->reorderable(0)
->addActionLabel('Select another Traveller')
->schema([
Forms\Components\Select::make('traveller_id')
->relationship(
name: 'travellers',
titleAttribute: 'first_name',
modifyQueryUsing: fn(Builder $query) => $query->where('company_id', Auth::user()->company_id)
)
->getOptionLabelFromRecordUsing(fn(Model $record) => "{$record->full_name} | {$record->email}")
->createOptionForm(fn(Form $form) => TravellerResource::form($form))
->required(),
])
->grid(2),
and looks like the same error is thrown: https://flareapp.io/share/OmVwxJ4P
8 replies
FFilament
Created by AsuranDex on 11/5/2023 in #❓┊help
Issue with Pivot relation on Repeater
It is indeed:
public function requestTravellers(): HasMany
{
return $this->hasMany(TravellerRequest::class);
}
public function requestTravellers(): HasMany
{
return $this->hasMany(TravellerRequest::class);
}
8 replies
FFilament
Created by AsuranDex on 9/6/2023 in #❓┊help
Error in production - file_put_contents
Ok i recursively added the write permissions to the storage folder, and that seems to have done the trick, cheers! Never had this issue deploying with Forge before, do you know if this would be a Filament 3 issue or a Forge issue not applying folder permissions properly?
6 replies
FFilament
Created by AsuranDex on 8/29/2023 in #❓┊help
Component not found after changing a ->live() element
Yeah i started out with a hyphen and changed it to an underscore just to see what would happen. Thanks for the tip though Turns out the issue was one of 'laziness'. Livewire 3 seems to look for components at App\Livewire rather than App\Http\Livewire and i'd generated the component using Laravel Idea plugin rather than through the CLI. I recreated the compontent using the CLI and now that its in the "correct" place, it is working fine!
6 replies
FFilament
Created by AsuranDex on 8/7/2023 in #❓┊help
Method Filament\Panel::getDomain does not exist error after composer update
@gizmojo Cheers, i've replaced the relevant code from the commit and i'm back up and running!
6 replies
FFilament
Created by AsuranDex on 8/7/2023 in #❓┊help
Method Filament\Panel::getDomain does not exist error after composer update
Heya, i wasn't using ->getDomain() in any capacity as far as im aware, so not sure how to resolve based of this github issue
6 replies