LeandroFerreira
LeandroFerreira
FFilament
Created by Lloyd on 11/14/2024 in #❓┊help
ApexCharts - Don't Render Section
you can publish the view and edit what you need
5 replies
FFilament
Created by aldec on 11/14/2024 in #❓┊help
Combine Relationship Manager tabs and form tabs
nice tip btw, I'll create a content about this 😅
12 replies
FFilament
Created by aldec on 11/14/2024 in #❓┊help
Combine Relationship Manager tabs and form tabs
much better:
Livewire::make(YourRelationManager::class, fn (Page $livewire, YourModel $record) => [
'ownerRecord' => $record,
'pageClass' => $livewire::class,
]),
Livewire::make(YourRelationManager::class, fn (Page $livewire, YourModel $record) => [
'ownerRecord' => $record,
'pageClass' => $livewire::class,
]),
and remove the mount method
12 replies
FFilament
Created by aldec on 11/14/2024 in #❓┊help
Combine Relationship Manager tabs and form tabs
it could be better, but it should work: in the RelationManager class, add this:
public function mount(): void
{
$this->ownerRecord = YourModel::find(request()->route('record'));
$pageClass = str(request()->route()->getAction('controller'))->remove('@__invoke')->toString();
$this->pageClass = $pageClass;

parent::mount();
}
public function mount(): void
{
$this->ownerRecord = YourModel::find(request()->route('record'));
$pageClass = str(request()->route()->getAction('controller'))->remove('@__invoke')->toString();
$this->pageClass = $pageClass;

parent::mount();
}
In the Form tab:
use Filament\Forms\Components\Livewire;
...

Tabs\Tab::make('xx')
->schema([
Livewire::make(YourRelationManager::class)
])
use Filament\Forms\Components\Livewire;
...

Tabs\Tab::make('xx')
->schema([
Livewire::make(YourRelationManager::class)
])
12 replies
FFilament
Created by aldec on 11/14/2024 in #❓┊help
Combine Relationship Manager tabs and form tabs
my bad, this
12 replies
FFilament
Created by Kanalaetxebarria on 11/14/2024 in #❓┊help
Is "vendor" a reserved name for panels?
6 replies
FFilament
Created by aldec on 11/14/2024 in #❓┊help
Combine Relationship Manager tabs and form tabs
you mean, inside the form, not this right?
12 replies
FFilament
Created by Kanalaetxebarria on 11/14/2024 in #❓┊help
Is "vendor" a reserved name for panels?
did you add $panel->login() to the new panel?
6 replies
FFilament
Created by malebestia. on 11/14/2024 in #❓┊help
Injecting the current Livewire component instance
Pages such as CreatePage, EditPage, etc are Livewire components. To access them, simply inject $livewire
3 replies
FFilament
Created by jmrufo on 11/12/2024 in #❓┊help
Error in Full Calendar installation process
what about composer require saade/filament-fullcalendar ?
6 replies
FFilament
Created by NME on 11/12/2024 in #❓┊help
How to hide dashboard from "Dashboard" depending on user role?
3 replies
FFilament
Created by Matthew on 11/11/2024 in #❓┊help
Is there a better way to write this x-init?
what ide? Could you share the code?
16 replies
FFilament
Created by Matthew on 11/11/2024 in #❓┊help
Is there a better way to write this x-init?
what is the goal?
16 replies
FFilament
Created by Djomla on 11/11/2024 in #❓┊help
Table Filter Custom Option Html
$optionLabel = new HtmlString("<span class=...
4 replies
FFilament
Created by Cem on 11/11/2024 in #❓┊help
Help with form outside Panel
yes, you need to verify where is it..
13 replies
FFilament
Created by Cem on 11/11/2024 in #❓┊help
Help with form outside Panel
13 replies
FFilament
Created by Guido on 11/10/2024 in #❓┊help
Conditionally hide SelectColumn based on email domain
maybe ->extraAttributes(fn (YourModel $record) => ['class' => str_ends_with($record->email, '@mycompany.com') ? '' : 'hidden']) use lifecycle hooks to verify the values...
8 replies
FFilament
Created by Cem on 11/11/2024 in #❓┊help
Help with form outside Panel
what about PublicAnamneseForm component?
13 replies
FFilament
Created by Tuim on 11/11/2024 in #❓┊help
Select with live() and searchable()
$get('_stabu_selector')) shouldn't be $valueToSearchFor ?
8 replies
FFilament
Created by Guido on 11/10/2024 in #❓┊help
Conditionally hide SelectColumn based on email domain
visible won't work because you can't determine the column visibility by rows..
8 replies