Jaw
Jaw
FFilament
Created by Jaw on 11/30/2023 in #❓┊help
how to place create action on top of the table?
No description
5 replies
FFilament
Created by Jaw on 10/6/2023 in #❓┊help
Is there a way to add vuejs app on a single that doenst tie to any resource?
Is there a way to add Vue app on a single custom page that doesn't tie to any resource?
16 replies
FFilament
Created by Jaw on 9/20/2023 in #❓┊help
How can i display the same column twice?
ImageColumn::make('url')
->width(100)
->height(100)
->label('Image'),
TextColumn::make('url')
->formatStateUsing(function ($state) {
$currentUrl = request()->getSchemeAndHttpHost();
$downloadLink = "$currentUrl/storage/$state";

return "<a href='$downloadLink' class='danger' download>Download</a>";
})
->html()
->label('Attachment'),
ImageColumn::make('url')
->width(100)
->height(100)
->label('Image'),
TextColumn::make('url')
->formatStateUsing(function ($state) {
$currentUrl = request()->getSchemeAndHttpHost();
$downloadLink = "$currentUrl/storage/$state";

return "<a href='$downloadLink' class='danger' download>Download</a>";
})
->html()
->label('Attachment'),
4 replies
FFilament
Created by Jaw on 9/20/2023 in #❓┊help
How can i get a value from previous column?
TextColumn::make('fileable_type')
->sortable()
->searchable()
->label('Resource')
->formatStateUsing(function ($state) {
$modelName = explode('\\', $state);
return $modelName[count($modelName) - 1];
}),
TextColumn::make('fileable_id')
->sortable()
->searchable()
->formatStateUsing(function ($state) {
// how can i get `fileable_type` here
})
TextColumn::make('fileable_type')
->sortable()
->searchable()
->label('Resource')
->formatStateUsing(function ($state) {
$modelName = explode('\\', $state);
return $modelName[count($modelName) - 1];
}),
TextColumn::make('fileable_id')
->sortable()
->searchable()
->formatStateUsing(function ($state) {
// how can i get `fileable_type` here
})
i want to retrive fileable_type in second column.
5 replies
FFilament
Created by Jaw on 9/15/2023 in #❓┊help
How can i search a related model name in TextColumn?
TextColumn::make('post.name')
->sortable()
->searchable(),
TextColumn::make('post.name')
->sortable()
->searchable(),
i cannot search for a post name.
19 replies
FFilament
Created by Jaw on 9/13/2023 in #❓┊help
is there a way to change `select an option` text?
No description
3 replies
FFilament
Created by Jaw on 9/13/2023 in #❓┊help
How can i reorder the position of resources?
No description
3 replies