mszabeh
mszabeh
FFilament
Created by Mark Chaney on 9/15/2023 in #❓┊help
Searchable relationship
Tables\Columns\TextColumn::make('user.first_name') ->label('user') ->searchable(['first_name','last_name']) ->formatStateUsing(fn (Domain $record): string => $record->user->first_name . ' ' . $record->user->last_name)
84 replies
FFilament
Created by zencilencer on 8/19/2023 in #❓┊help
Refresh Table
2 replies
FFilament
Created by mszabeh on 8/17/2023 in #❓┊help
Update TextInput maxValue
Thank you bro. ✅
8 replies
FFilament
Created by mszabeh on 8/17/2023 in #❓┊help
Update TextInput maxValue
Forms\Components\Select::make('variation_id') ->options(Variation::query()->where('inventory', '>' , 0)->pluck('title', 'id')) ->getOptionLabelFromRecordUsing(fn (Model $record) => "{$record->id} {$record->title} {$record->id}") ->required() ->reactive() ->afterStateUpdated(function ($state, Forms\Set $set, Forms\Get $get) { if($v = Variation::find($state)) { // I need to set maxValue of quantity to $v->inventory; } }) ->columnSpan([ 'md' => 3, ]) ->searchable(), Forms\Components\TextInput::make('quantity') ->label('Quantity') ->numeric(),
8 replies
FFilament
Created by mszabeh on 8/17/2023 in #❓┊help
Update TextInput maxValue
Thank you , I checked and this is result: Property [$myMaxValue] not found on component
8 replies
FFilament
Created by mszabeh on 8/4/2023 in #❓┊help
TextColumn alignment()
👍🏻 🌹
9 replies
FFilament
Created by mszabeh on 8/4/2023 in #❓┊help
TextColumn alignment()
Thank you 👌
9 replies
FFilament
Created by mszabeh on 8/4/2023 in #❓┊help
TextColumn alignment()
Mayebe, if we have headerAligment() method, I think it would be great.
9 replies
FFilament
Created by mszabeh on 8/4/2023 in #❓┊help
How to generate new assets
The instructions: WARN Action is required to complete the theme setup: ⇂ First, add a new item to the input array of vite.config.js: resources/css/filament/admin/theme.css ⇂ Next, register the theme in the admin panel provider using ->viteTheme('resources/css/filament/admin/theme.css') ⇂ Finally, run npm run build to compile the theme
4 replies
FFilament
Created by mszabeh on 8/4/2023 in #❓┊help
How to generate new assets
thank @awcodes , I remove theme and recreate and see that
4 replies
FFilament
Created by Rasasak on 8/1/2023 in #❓┊help
How to start theme
Hello, after customize fi classes, with which command i must generate new css?
9 replies
FFilament
Created by Ian Tasker on 8/2/2023 in #❓┊help
Get record in edit widget
you can find here 👆
7 replies
FFilament
Created by FACHRI on 5/10/2023 in #❓┊help
Display category to select field
use similar this: ->options(Category::whereTaxonomy('product')->get()->pluck('name', 'id'))
33 replies
FFilament
Created by mszabeh on 4/14/2023 in #❓┊help
How to use Tabs getActiveTab() in form
I have one field address_id for chose one address from user addresses in tab #1 and i have card for insert new address fields in tab #2 i need to set requred() to addres_id field in tab #1 if tab 1 activated and set required() to all fileds in tab 2 , if tab 2 activated.
14 replies
FFilament
Created by mszabeh on 4/14/2023 in #❓┊help
How to use Tabs getActiveTab() in form
so , how we can use getActiveTab()? just in backend?
14 replies
FFilament
Created by mszabeh on 4/14/2023 in #❓┊help
How to use Tabs getActiveTab() in form
I have two tabs in one form. and i want to get active tab id when tab changed.
14 replies
FFilament
Created by mszabeh on 4/14/2023 in #❓┊help
How to use Tabs getActiveTab() in form
Does anyone have any comments?
14 replies