Gregory RODRIGUES
Gregory RODRIGUES
FFilament
Created by Gregory RODRIGUES on 9/24/2024 in #❓┊help
Create new info list entry render the widget
I want to create the new infolist entry.
6 replies
FFilament
Created by Gregory RODRIGUES on 9/11/2024 in #❓┊help
CreateAction inside RelationManager with auto id of current ownerRecord for the form
CreateAction inside RelationManager with auto id of current ownerRecord for the form
5 replies
FFilament
Created by Gregory RODRIGUES on 1/31/2024 in #❓┊help
Key-value filed display reordable auto
For example you have data : 25 => test 1 => test 2 => test the display is : 1 => test 2 => test 25 => test but inside the storage : 25 => test 1 => test 2 => test
13 replies
FFilament
Created by Gregory RODRIGUES on 12/12/2023 in #❓┊help
updatedActiveTab bug reset
When you use Tabs, you need to click 2 times for actualise the columns dynamics. You have a bug for the resetPage inside the function updatedActiveTab
5 replies
FFilament
Created by Gregory RODRIGUES on 12/12/2023 in #❓┊help
columns dynamic inside table
I try to use the dynamic columns defintion for the table. For example i use tabs :
public function getTabs(): array
{
return [
'Tab1' => ListRecords\Tab::make()->label('Tab1')
->modifyQueryUsing(fn (Builder $query) =>
$query->whereIn('status', [1, 2, 3])),
'Draft' => ListRecords\Tab::make()
->modifyQueryUsing(fn (Builder $query) =>
$query->where('status', 4)),
];
}
public function getTabs(): array
{
return [
'Tab1' => ListRecords\Tab::make()->label('Tab1')
->modifyQueryUsing(fn (Builder $query) =>
$query->whereIn('status', [1, 2, 3])),
'Draft' => ListRecords\Tab::make()
->modifyQueryUsing(fn (Builder $query) =>
$query->where('status', 4)),
];
}
public static function table(Table $table): Table
{
$activeTab = $table->getLivewire()->activeTab;
$tableReturn = null;

switch ($activeTab) {
case 'Tab2':
$tableReturn = self::tableTab2($table);
break;
case 'Tab1':
$tableReturn = self::tableDefault($table);
break;
}

return $tableReturn;
}
public static function table(Table $table): Table
{
$activeTab = $table->getLivewire()->activeTab;
$tableReturn = null;

switch ($activeTab) {
case 'Tab2':
$tableReturn = self::tableTab2($table);
break;
case 'Tab1':
$tableReturn = self::tableDefault($table);
break;
}

return $tableReturn;
}
public static function tableDefault(Table $table): Table
{
return $table
->columns([]);
}
public static function tableDefault(Table $table): Table
{
return $table
->columns([]);
}
2 replies
FFilament
Created by Gregory RODRIGUES on 12/6/2023 in #❓┊help
polymorphic relation manager
It's not possible to create relation polymorphic inside the relation manager ?
2 replies
FFilament
Created by Gregory RODRIGUES on 10/18/2023 in #❓┊help
Infolist columns doesn't works
when i use this inbside the resource :
public static function infolist(Infolist $infolist): Infolist
{
return $infolist
->schema([
Infolists\Components\Section::make('1')
->schema([
// ...
]),
Infolists\Components\Section::make('2')
->schema([
// ...
]),
Infolists\Components\Section::make('3')
->schema([
// ...
]),
])
->columns(3);
}
public static function infolist(Infolist $infolist): Infolist
{
return $infolist
->schema([
Infolists\Components\Section::make('1')
->schema([
// ...
]),
Infolists\Components\Section::make('2')
->schema([
// ...
]),
Infolists\Components\Section::make('3')
->schema([
// ...
]),
])
->columns(3);
}
it's not apply.
31 replies
FFilament
Created by Gregory RODRIGUES on 10/13/2023 in #❓┊help
Generate ressource with doctrine enum postgres not recognize
😉
3 replies
FFilament
Created by Gregory RODRIGUES on 9/23/2023 in #❓┊help
auth()->user() inside AdminPanel Provider
When i use this dd(auth()->user()); inside of the admin panel provider i have this error. Target class [hash] does not exist. how it's possible to use this
3 replies
FFilament
Created by Gregory RODRIGUES on 9/19/2023 in #❓┊help
Side panel edit
How create side panel edit or component ?
10 replies
FFilament
Created by Gregory RODRIGUES on 9/18/2023 in #❓┊help
Tailwind css class not generate
How i apply the tailwind class css ? for example :
css
text-xs text-white rotate-3 bg-danger-100 text-danger-800 text-sm font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-danger-900 dark:text-danger-300
css
text-xs text-white rotate-3 bg-danger-100 text-danger-800 text-sm font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-danger-900 dark:text-danger-300
3 replies
FFilament
Created by Gregory RODRIGUES on 9/18/2023 in #❓┊help
migration
Hello after migration lot of problem. Svg by name "o-collection" from set "heroicons" not found.
6 replies