Zetto
Zetto
FFilament
Created by Zetto on 11/30/2023 in #❓┊help
Deploying inside subdirectory
On further inspection it's from Filament::getUrl() . Is there a way i can prefix all url inside my application?
4 replies
FFilament
Created by Zetto on 11/30/2023 in #❓┊help
Deploying inside subdirectory
Update: manage to get the js and script working using ASSET_URL inside .env and livewire setUpdateRoute and setScriptRoute. The only problem left is the route, while it is accessible and works fine, anything using route() is wrong. It points to the example.com/app instead of example.com/app
4 replies
FFilament
Created by MichaelMdp on 10/6/2023 in #❓┊help
Defaultsort / column sorting
I see, i can think of it as a compromise to enable other features.
8 replies
FFilament
Created by MichaelMdp on 10/6/2023 in #❓┊help
Defaultsort / column sorting
Not the issue, the default sort is correct that is ascending. Defaulting to desc is not the intended behavior. However user should be able to change how it is sorted with ->sortable(). Still pressing twice is a bad ux.
8 replies
FFilament
Created by MichaelMdp on 10/6/2023 in #❓┊help
Defaultsort / column sorting
@MichaelMdp Hey, have you found the solution? I am experiencing the same problem
8 replies
FFilament
Created by vkDas on 11/3/2023 in #❓┊help
Method Filament\Panel::getDomains does not exist
delete your composer.lock file and vendor folder then redo composer install
26 replies
FFilament
Created by Zetto on 9/17/2023 in #❓┊help
Show full width and text of TextColumn that is using badge()
Add to context, this only happens because badge has "truncate" class in it, sadly no hook. idk if changing fi-badge breaks anything outside of it
3 replies
FFilament
Created by Zetto on 9/6/2023 in #❓┊help
ImageColumn custom state (array/collection)
Solved, use Array as return type instead of Collection
4 replies
FFilament
Created by Zetto on 9/6/2023 in #❓┊help
ImageColumn custom state (array/collection)
Current code
Tables\Columns\ImageColumn::make('supervisor')
->state(function (FinalProject $record) {
$list = collect();
foreach ($record->lecturers as $lecturer)
{
if ($lecturer->pivot->role == 'supervisor') {
$list->push($lecturer->image);
}
}
return $list;
})
->circular()
->stacked(),
Tables\Columns\ImageColumn::make('supervisor')
->state(function (FinalProject $record) {
$list = collect();
foreach ($record->lecturers as $lecturer)
{
if ($lecturer->pivot->role == 'supervisor') {
$list->push($lecturer->image);
}
}
return $list;
})
->circular()
->stacked(),
4 replies
FFilament
Created by Zetto on 9/5/2023 in #❓┊help
AttachAction not working for custom select
Following up, it started working again, but all i did was deleting the space and tabs, idk if that causes anything to the closure
3 replies
FFilament
Created by Zetto on 9/1/2023 in #❓┊help
Attach with relationship showing different search option label
I am using Relation Manager "attach" action, I've been trying to figure out how to search using it's parent attribute ('name' field).
recordTitleAttribute('user_id')
recordTitleAttribute('user_id')
works cause the field exist, is there a way to access it's parent attributes? If it doesn't, is there a way I can change the Select option label so the option can be identified by name instead of id or maybe even custom the search like in multi-select?
10 replies
FFilament
Created by Zetto on 8/30/2023 in #❓┊help
Array of ID to Other Values in a Table Column
hmm i see thanks
13 replies
FFilament
Created by Zetto on 8/30/2023 in #❓┊help
Array of ID to Other Values in a Table Column
Yeah, I know how to access the array outside filament, i just dont know how to use it on filaments table columns
13 replies
FFilament
Created by Zetto on 8/30/2023 in #❓┊help
Array of ID to Other Values in a Table Column
13 replies
FFilament
Created by Zetto on 8/30/2023 in #❓┊help
Array of ID to Other Values in a Table Column
those are the ones i use in the create/edit forms
13 replies
FFilament
Created by Zetto on 8/30/2023 in #❓┊help
Array of ID to Other Values in a Table Column

->multiple()
->searchable()
->getSearchResultsUsing(fn (string $search): array => User::where('name', 'like', "%{$search}%")->limit(50)->pluck('name', 'id')->toArray())
->getOptionLabelsUsing(fn (array $values): array => User::whereIn('id', $values)->pluck('name', 'id')->toArray()),

->multiple()
->searchable()
->getSearchResultsUsing(fn (string $search): array => User::where('name', 'like', "%{$search}%")->limit(50)->pluck('name', 'id')->toArray())
->getOptionLabelsUsing(fn (array $values): array => User::whereIn('id', $values)->pluck('name', 'id')->toArray()),
13 replies
FFilament
Created by Zetto on 8/30/2023 in #❓┊help
Array of ID to Other Values in a Table Column
Basically I multi-search the names then store it inside array
13 replies
FFilament
Created by Zetto on 8/30/2023 in #❓┊help
Array of ID to Other Values in a Table Column
I dont use relationship, or should i use it in this case?
13 replies
FFilament
Created by cobrABite on 8/25/2023 in #❓┊help
How to handel filament/filament 3.x-dev requires filament/support 3.x-dev -> satisfiable by filament
Read the logs until the end, it should tell you what is necessary.
6 replies
FFilament
Created by Zetto on 5/11/2023 in #❓┊help
Not allowing new value if certain value is selected as option (multiselect)
This could also be a query problem, I will look more into that.
18 replies