Rahaf
Rahaf
FFilament
Created by Rahaf on 11/15/2023 in #❓┊help
CreateAction::make()
I try to make Filament Nested Resources this is my code i use it in v2 the problem is the create action does not work i use create action ->url and in v3 ->successRedirectUrl Are they different or the same?
public static function getPages(): array
{
return [
'index' => Pages\ListLevelGames::route('/'),
'level-games' => Pages\ListLevelGames::route('/{record}'),
'create' => Pages\CreateLevelGame::route('/{record}/create'),
'edit' => Pages\EditLevelGame::route('/{record}/edit'),
];
}
public static function getPages(): array
{
return [
'index' => Pages\ListLevelGames::route('/'),
'level-games' => Pages\ListLevelGames::route('/{record}'),
'create' => Pages\CreateLevelGame::route('/{record}/create'),
'edit' => Pages\EditLevelGame::route('/{record}/edit'),
];
}
protected function getHeaderActions(): array
{
return [
Actions\CreateAction::make()
->url(fn (): string => LevelGameResource::getUrl('create', ['record' => request('record')])),


];
}
protected function getHeaderActions(): array
{
return [
Actions\CreateAction::make()
->url(fn (): string => LevelGameResource::getUrl('create', ['record' => request('record')])),


];
}
here CreateAction on v3 documents

CreateAction::make()
->successRedirectUrl(fn (Model $record): string => route('posts.edit', [
'post' => $record,
])
here CreateAction on v3 documents

CreateAction::make()
->successRedirectUrl(fn (Model $record): string => route('posts.edit', [
'post' => $record,
])
2 replies
FFilament
Created by Rahaf on 11/12/2023 in #❓┊help
how Excel Export table with there relation manager ?
I use this plugin https://filamentphp.com/plugins/pxlrbt-excel#export-types I have a teacher's table and every teacher has many kids I want when select one teacher and click on Export all the kids and other relation managers export one time in one Excel sheet
3 replies
FFilament
Created by Rahaf on 11/12/2023 in #❓┊help
Can I Excel Export of table with multi model?
I used this plugin https://filamentphp.com/plugins/pxlrbt-excel I want for Ex. when I select two rows of teacher table t.A and t.B export extra data from another model or form relation resource.
2 replies
FFilament
Created by Rahaf on 11/5/2023 in #❓┊help
Language Switch
6 replies
FFilament
Created by Rahaf on 11/3/2023 in #❓┊help
Target [Illuminate\Database\Eloquent\Model] is not instantiable.
No description
13 replies
FFilament
Created by Rahaf on 11/2/2023 in #❓┊help
Target [Illuminate\Database\Eloquent\Model] is not instantiable.
This is my reference I built them in v2 and work correctly. https://laraveldaily.com/post/filament-nested-resources-courses-lessons In the new upgrade list, delete and Breadcrumbs work correctly but in create action, I got this error " Target [Illuminate\Database\Eloquent\Model] "
2 replies
FFilament
Created by Rahaf on 11/1/2023 in #❓┊help
Target [Illuminate\Database\Eloquent\Model] is not instantiable.
Hi , I upgrade v2 to v3 then I got this error I built my code the same as this link filament-nested https://laraveldaily.com/post/filament-nested-resources-courses-lessons
2 replies
FFilament
Created by Rahaf on 10/13/2023 in #❓┊help
how change color theem in filamentphp
how change color in filamentphp Customize Primary Color
13 replies
FFilament
Created by Rahaf on 10/12/2023 in #❓┊help
I want to add notifications
No description
3 replies
FFilament
Created by Rahaf on 9/17/2023 in #❓┊help
I can view two models in one Resources
I have two models one survey and another one is user info. I want to create one table with a survey and user info ?
9 replies
FFilament
Created by Rahaf on 9/3/2023 in #❓┊help
how to make a link for each row in the table using action.
I want every row like edit to male link so i can share the link .
8 replies
FFilament
Created by Rahaf on 8/13/2023 in #❓┊help
Property [$record] not found on component: [app.filament.resources.level-game-resource.relation-mana
acutely, I am in relation manager resources and I want to get questions based on level, how can I get the id of level from the path if I am in relation manager resource. this is my URL /levels/level-games/1/edit?activeRelationManager=0 ->options(fn ($livewire) => Question::getGameQuestions($livewire->record))
4 replies
FFilament
Created by Rahaf on 8/6/2023 in #❓┊help
Class "Filament\Tables\Columns\Summarizers\Sum" not found
Class "Filament\Tables\Columns\Summarizers\Sum" not found
26 replies
FFilament
Created by Rahaf on 8/3/2023 in #❓┊help
tagColumn
hi, I am in level recourse the level has a relation with the level game, and the level game has a relation with the game type how I can get the game type with his elements? In TagsColumn::make('level->levelgame->gametype->type ')?TagsColumn::make('levelGame.game_type_id') how i can get relations .relation.element i am at level levelGame table gemeTyple table one levelGame belong to gemeTyple how i can get title from game type like this TagsColumn::make('level->levelGame->gameType.type')
2 replies