Closed Jacobtims closed 1 month ago
Hi @Jacobtims, thanks for reporting! I'm digging into the problem to solve.
Hi @Jacobtims,
after some check i can assume this isn't an issue.
The right way to override Email model is to extend the new model with RickDBCN\FilamentEmail\Models\Email:
src/app/Models/Email.php
<?php
namespace App\Models;
use RickDBCN\FilamentEmail\Models\Email as BaseEmail;
class Email extends BaseEmail
{
}
With this method no conflicts will popped out.
After this you can override all the methods from the parent class.
What happened?
When I override the default model class in the
filament-email.php
config file. I get the following error:This error occurs because of line 249 in vendor / rickdbcn / filament-email / src / Filament / Resources / EmailResource.php In requires your model in the arrow functions:
How to reproduce the bug
filament-email.php
config filePackage Version
1.4.8
PHP Version
8.2.20
Laravel Version
10.48.15
Which operating systems does with happen with?
macOS, Linux
Notes
No response