RY-Ali
RY-Ali
Explore posts from servers
FFilament
Created by RY-Ali on 10/17/2024 in #❓┊help
Help on how to take field values and use them inside Repeater::make fields
I want to take the ID from user_id and work with it in the products field Forms\Components\Select::make('user_id') ->label('Client') ->options(function () { return \App\Models\User::whereHas('roles', function ($query) { $query->where('name', 'client'); })->pluck('name', 'id'); }) I want to add some percentages according to the customer in the products, and for this I need to bring the customer's ID ( user_id ) Forms\Components\Repeater::make('items') ->hidden(fn (Get $get): bool => ! $get('user_id')) ->visible(fn (Get $get): bool => (bool) $get('user_id')) ->relationship() ->schema([ Forms\Components\Select::make('product_id') ->label('Designation') ->options(Products::pluck('name', 'id')) ->required() ->reactive() ->afterStateUpdated(function ( $state, callable $get, callable $set) { }), ])
2 replies
FFilament
Created by RY-Ali on 9/2/2024 in #❓┊help
Help changing the design of the Login page!!!
Guys, I have a special UI design for registration and login page and I want to implement them on filament, but I did not succeed in overriding the login page. Any help!!!Any help!!!
22 replies