Saifulapm
Saifulapm
Explore posts from servers
FFilament
Created by Jr.Pikong on 1/19/2024 in #❓┊help
Export with custom guard
@Jr.Pikong when try to download export file, it’s not working because of custom guard. How did you make it ??
7 replies
FFilament
Created by Saifulapm on 4/19/2024 in #❓┊help
Using a custom user model in Export action
How I can add admin model to export ?
7 replies
FFilament
Created by Saifulapm on 4/19/2024 in #❓┊help
Using a custom user model in Export action
But when export finished, notification should be send to admin model ..
7 replies
FFilament
Created by Saifulapm on 4/19/2024 in #❓┊help
Using a custom user model in Export action
Still I need to register it ??
7 replies
FFilament
Created by Saifulapm on 4/19/2024 in #❓┊help
Using a custom user model in Export action
My Admin model extend to User model
class Admin extends User
{
use HasRoles, HasSuperAdmin;

protected $table = 'users';

protected static function booted()
{
static::addGlobalScope('admin', function (Builder $builder) {
$builder->where('type', 'admin');
});
}
}
class Admin extends User
{
use HasRoles, HasSuperAdmin;

protected $table = 'users';

protected static function booted()
{
static::addGlobalScope('admin', function (Builder $builder) {
$builder->where('type', 'admin');
});
}
}
7 replies