dissto
dissto
FFilament
Created by Aethyrion on 1/16/2025 in #❓┊help
Testing pagination on relation manager
You probably need to pass the correct page name to it. I think by default goToPage would look for ?page=x But I think you'd need ?addressesRelationManagerPage=x So:
$livewire
->call('gotoPage', 2, 'addressesRelationManagerPage')
$livewire
->call('gotoPage', 2, 'addressesRelationManagerPage')
🤔
4 replies
FFilament
Created by Oddman on 1/7/2025 in #❓┊help
Man... Filament is so damn slow :(
Are you developing on Windows? Or are you taking about the page on your production server? 🤔
30 replies
FFilament
Created by CT on 12/13/2024 in #❓┊help
Strategies for dealing with a very large number of filters on a resource?
I guess a viable option would be to use Using tabs to filter the records for the main filters and for the others have them as regular filters. Which presumably will add onto to the already active tab filter (if that makes sense). If you would like a more advanced and customizable solution on a per user basis. You could check out Advanced Tables (formerly Filter Sets) (paid) demo 🤔
3 replies
FFilament
Created by lbar on 12/12/2024 in #❓┊help
breadcrumb never disappear completely
I think you would need to do something like:
public function getBreadcrumbs(): array
{
return [];
}
public function getBreadcrumbs(): array
{
return [];
}
for each of the pages like ListXXX.php, CreateXXX.php, EditPHP.php etc. do disable the breadcrumbs 🤔
5 replies
FFilament
Created by nexxai on 12/9/2024 in #❓┊help
Error when trying to sort table by MorphTo relationship
Just a guess though, your model is named Person but your tables are for People. Probably related to Laravels internal pluralization. Did you provide the necessary parameters for the relationships since you deviate from the regular naming conventions? 🤔
9 replies
FFilament
Created by Matthew on 11/29/2024 in #❓┊help
Relation Info on same page as Resource
Could use a Repeatable entry for that though. That's a perfect case I suppose.
6 replies
FFilament
Created by Matthew on 11/29/2024 in #❓┊help
Relation Info on same page as Resource
I typically do a custom table action with an Infolist to show some details of a resource that doesn't warrant going to the actual view/edit page of that resource...something like this:
Tables\Actions\Action::make('quickview')
->slideOver()
->infolist([
// TextEntry::make('xxx')
])
Tables\Actions\Action::make('quickview')
->slideOver()
->infolist([
// TextEntry::make('xxx')
])
🤔
6 replies
FFilament
Created by Xavi on 11/25/2024 in #❓┊help
Two list sfor one resource
Can you show more code?
5 replies
FFilament
Created by Xavi on 11/25/2024 in #❓┊help
Two list sfor one resource
Perhaps you could try something like this on your Navitem?:
NavigationItem::make('user_invoices')
// ...
->isActiveWhen(fn () => request()->routeIs('filament.admin.resources.user-invoices.index')),
NavigationItem::make('user_invoices')
// ...
->isActiveWhen(fn () => request()->routeIs('filament.admin.resources.user-invoices.index')),
🤔
5 replies
FFilament
Created by David | Fortune Validator on 11/23/2024 in #❓┊help
Infolist data from Form textarea
Perhaps you could something like this:
->formatStateUsing(fn (string $state): HtmlString => new HtmlString(nl2br($state)))
->formatStateUsing(fn (string $state): HtmlString => new HtmlString(nl2br($state)))
🤔 https://www.php.net/manual/en/function.nl2br.php
6 replies
FFilament
Created by _andypeacock on 11/24/2024 in #❓┊help
Change with of relationmanager modal
6 replies
FFilament
Created by Glebka on 11/21/2024 in #❓┊help
Can i access $search value live in a table column?
Perhaps you could try something like:
TextColumn::make('xxx')
->visible(function ($livewire) {
return $livewire->tableSearch;
}),
TextColumn::make('xxx')
->visible(function ($livewire) {
return $livewire->tableSearch;
}),
🤔
4 replies
FFilament
Created by Ava on 11/20/2024 in #❓┊help
Section->headerActions->Select
app instead of src
16 replies
FFilament
Created by Ava on 11/20/2024 in #❓┊help
Section->headerActions->Select
my bad...app folder...I have tested that code inside a plugin 🤓
16 replies
FFilament
Created by Ava on 11/20/2024 in #❓┊help
Section->headerActions->Select
Inside your src folder create a new folder "named" Actions. Create a new file named MySelectAction.php inside that folder. Paste the following code into MySelectAction.php
<?php

namespace App\Actions;

use Filament\Actions\Concerns\HasSelect;
use Filament\Forms\Components\Actions\Action;

class MySelectAction extends Action
{
use HasSelect;

protected function setUp(): void
{
parent::setUp();

$this->view('filament-actions::select-action');
}
}
<?php

namespace App\Actions;

use Filament\Actions\Concerns\HasSelect;
use Filament\Forms\Components\Actions\Action;

class MySelectAction extends Action
{
use HasSelect;

protected function setUp(): void
{
parent::setUp();

$this->view('filament-actions::select-action');
}
}
After that you should be able to use:
Section::make()
->headerActions([
\App\Actions\MySelectAction::make('hi')
->options([
'option1' => 'Option 1',
])
])
Section::make()
->headerActions([
\App\Actions\MySelectAction::make('hi')
->options([
'option1' => 'Option 1',
])
])
16 replies
FFilament
Created by Ava on 11/20/2024 in #❓┊help
Section->headerActions->Select
No description
16 replies
FFilament
Created by Ava on 11/20/2024 in #❓┊help
Section->headerActions->Select
You could create a custom action that extends a Forms\Components\Action, then it would work...
<?php

namespace App\Actions;

use Filament\Actions\Concerns\HasSelect;
use Filament\Forms\Components\Actions\Action;

class MySelectAction extends Action
{
use HasSelect;

protected function setUp(): void
{
parent::setUp();

$this->view('filament-actions::select-action');
}
}
<?php

namespace App\Actions;

use Filament\Actions\Concerns\HasSelect;
use Filament\Forms\Components\Actions\Action;

class MySelectAction extends Action
{
use HasSelect;

protected function setUp(): void
{
parent::setUp();

$this->view('filament-actions::select-action');
}
}
Section::make()
->headerActions([
\App\Actions\MySelectAction::make('hi')
->options([
'option1' => 'Option 1',
])
])
Section::make()
->headerActions([
\App\Actions\MySelectAction::make('hi')
->options([
'option1' => 'Option 1',
])
])
16 replies
FFilament
Created by Ava on 11/20/2024 in #❓┊help
Section->headerActions->Select
Well, looks like the section does not support the SelectAction currently 🤔
16 replies
FFilament
Created by Ava on 11/20/2024 in #❓┊help
Section->headerActions->Select
SelectAction not Select though
16 replies
FFilament
Created by Ava on 11/20/2024 in #❓┊help
Section->headerActions->Select
If you are looking for the SelectAction, yea it appears to be undocumented as of right now...
protected function getHeaderActions(): array
{
return [
Actions\SelectAction::make('test')
->options([
'hi' => 'Hello',
]),
];
}
protected function getHeaderActions(): array
{
return [
Actions\SelectAction::make('test')
->options([
'hi' => 'Hello',
]),
];
}
16 replies