Np
Np
FFilament
Created by Np on 2/25/2024 in #❓┊help
Belongs to many showing error
No description
3 replies
FFilament
Created by Np on 2/25/2024 in #❓┊help
Managing relationship
i want have pivot table with model_id , role_id, branch_id , model_type while creating i want to attach all above fields . Please find the relationships its not working public static function form(Form $form): Form { return $form ->schema([ Forms\Components\Select::make('company_id') ->relationship('company', 'name') ->required(), Forms\Components\TextInput::make('name') ->required() ->maxLength(255), Forms\Components\TextInput::make('email') ->email() ->required() ->maxLength(255), Forms\Components\DateTimePicker::make('email_verified_at'), Forms\Components\TextInput::make('password') ->password() ->required() ->maxLength(255), Forms\Components\Select::make('Branches') ->relationship('branches', 'name') ->multiple() ->required(), Forms\Components\Select::make('roles') ->relationship('roles', 'name') ->multiple() ->required(), Forms\Components\Select::make('rolesBranch') ->relationship('rolesBranch','name') ->multiple() ->required(), ]); } public function roles(): BelongsToMany { return $this->belongsToMany(Role::class, 'model_has_roles', 'model_id', 'role_id')->withPivot('branch_id', 'model_type'); } public function rolesBranch(): BelongsToMany { return $this->belongsToMany(Branch::class, 'model_has_roles', 'model_id', 'branch_id')->withPivot('role_id', 'model_type'); }
2 replies
FFilament
Created by Np on 2/23/2024 in #❓┊help
whatsapp message sending jobs
I want to send 10000 messages to selected customers using jobs and queue. How can I do it
3 replies
FFilament
Created by Np on 2/22/2024 in #❓┊help
Attach Pivot attributes
No description
3 replies
FFilament
Created by Np on 12/9/2023 in #❓┊help
toolbar button in rich editor
No description
4 replies
FFilament
Created by Np on 12/6/2023 in #❓┊help
custom action button can be used in multiple places
I want to create a custom action button to send email like a service. Can be used in where ever I want @Np
22 replies
FFilament
Created by Np on 10/24/2023 in #❓┊help
email verification
In filament adminserviceprovider. I am using emailverification(). But it does not sends email
3 replies