Hasnayeen
Hasnayeen
FFilament
Created by Sam Pizzo on 10/14/2024 in #❓┊help
hours input
No description
11 replies
FFilament
Created by Sam Pizzo on 10/14/2024 in #❓┊help
hours input
I'm asking about the structure of data that will be stored, coz the input type is dependent on the data structure, how are you storing the data currently, is it array, json or a separate table with column for each day start and end?
11 replies
FFilament
Created by Sam Pizzo on 10/14/2024 in #❓┊help
hours input
are you using spatie/opening-hours? or how is your data structure for this?
11 replies
FFilament
Created by Zlatiborac on 5/12/2024 in #❓┊help
Manipulation on uploaded image before save
9 replies
FFilament
Created by Wirkhof on 2/29/2024 in #❓┊help
Getting current url in Filament
not in your footer, footer isn't a page, rather in your sub page component where you want to see it
31 replies
FFilament
Created by Wirkhof on 2/29/2024 in #❓┊help
Getting current url in Filament
try with {{ $this->getUrl() }}
31 replies
FFilament
Created by Mikasa on 10/1/2023 in #❓┊help
Make Form Component Utility Injection Can be Called from Custom Method
if you're using custom method then you need to use Filament\Support\Concerns\EvaluatesClosures
8 replies
FFilament
Created by Charly / Toufloux on 10/1/2023 in #❓┊help
How to save markdwon
when you save your markdown all new lines will be preserved as "\n"
7 replies
FFilament
Created by Mikasa on 10/1/2023 in #❓┊help
Make Form Component Utility Injection Can be Called from Custom Method
use Filament\Forms\Get
use Filament\Forms\Get;

MyCustomForm::make('name')
->myCustomMethod(fn(Get $get) => $get('other_name'))
use Filament\Forms\Get;

MyCustomForm::make('name')
->myCustomMethod(fn(Get $get) => $get('other_name'))
8 replies
FFilament
Created by Charly / Toufloux on 10/1/2023 in #❓┊help
How to save markdwon
use text type, $table->text('markdown');
7 replies
FFilament
Created by Gehts on 9/27/2023 in #❓┊help
Laravel Dashboard Login
5 replies
FFilament
Created by Gehts on 9/27/2023 in #❓┊help
Laravel Dashboard Login
5 replies
FFilament
Created by Patrick Boivin on 9/22/2023 in #❓┊help
Testing infolist actions
$page->getInfolist('infolist')
->getComponent('input')
->getAction('create')
->formData([
'keys' => [
'name' => 'Test',
]
])
->call();
$page->getInfolist('infolist')
->getComponent('input')
->getAction('create')
->formData([
'keys' => [
'name' => 'Test',
]
])
->call();
14 replies
FFilament
Created by Patrick Boivin on 9/22/2023 in #❓┊help
Testing infolist actions
retrieved the action using name
14 replies
FFilament
Created by Patrick Boivin on 9/22/2023 in #❓┊help
Testing infolist actions
ok did this according to your suggestion -> access the action object, run the action, and make your assertion in the DB
14 replies
FFilament
Created by Patrick Boivin on 9/22/2023 in #❓┊help
Testing infolist actions
that's a good idea but the action is one-off so kinda hesitant to extract that to a separate class but if I can't find any other way then probably do this. Thanks for the suggestion
14 replies
FFilament
Created by Patrick Boivin on 9/22/2023 in #❓┊help
Testing infolist actions
I already saw your answer to other post, trying to do exactly that but couldn't access the action as it's too nested and the it all very cyclical
14 replies
FFilament
Created by zoomZoom on 9/21/2023 in #❓┊help
Navigation Items between Navigation groups
use custom navigation builder
->navigation(function (NavigationBuilder $builder): NavigationBuilder {
return $builder->groups([
NavigationGroup::make('Shop')
->items([
...ProductResource::getNavigationItems(),
]),
NavigationGroup::make('')
->items([
NavigationItem::make('Dashboard')
->icon('heroicon-o-home')
->isActiveWhen(fn (): bool => request()->routeIs('filament.admin.pages.dashboard'))
->url(fn (): string => Dashboard::getUrl()),
]),
NavigationGroup::make('Blog')
->items([
...PostResource::getNavigationItems(),
]),
]);
})
->navigation(function (NavigationBuilder $builder): NavigationBuilder {
return $builder->groups([
NavigationGroup::make('Shop')
->items([
...ProductResource::getNavigationItems(),
]),
NavigationGroup::make('')
->items([
NavigationItem::make('Dashboard')
->icon('heroicon-o-home')
->isActiveWhen(fn (): bool => request()->routeIs('filament.admin.pages.dashboard'))
->url(fn (): string => Dashboard::getUrl()),
]),
NavigationGroup::make('Blog')
->items([
...PostResource::getNavigationItems(),
]),
]);
})
7 replies
FFilament
Created by jouni.i on 9/18/2023 in #❓┊help
Filament Section if isCollapsed
Components\Section::make('Content')
->extraAlpineAttributes([
'x-init' => '
$el.querySelector(\'h3\').classList.add(\'hidden\')
$watch(\'isCollapsed\', value => $el.querySelector(\'h3\').classList.toggle(\'hidden\'))',
])
Components\Section::make('Content')
->extraAlpineAttributes([
'x-init' => '
$el.querySelector(\'h3\').classList.add(\'hidden\')
$watch(\'isCollapsed\', value => $el.querySelector(\'h3\').classList.toggle(\'hidden\'))',
])
3 replies