You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?php
namespace App\Models;
use RickDBCN\FilamentEmail\Models\Email as BaseEmail;
class Email extends BaseEmail
{
public function facility(): \Illuminate\Database\Eloquent\Relations\BelongsTo
{
return $this->belongsTo(Facility::class, 'team_id');
}
}
But it shows no sent Emails in the Resource. In the database there is no team_id attached on the filament_email_log table for the entries.
What happened?
When using an other user tenant relationship than teams it throws this error:
Call to a member function newCollection() on null
When I change the global scope on the teams model to my custom relationship it works.
A generic solution would be nice.
How to reproduce the bug
Use a custom user tenant relationship e.g. belognsToMany facilities and try to open EmailResource.
Package Version
1.6.2
PHP Version
8.3
Laravel Version
11.22.0
Which operating systems does with happen with?
Linux
Notes
No response
The text was updated successfully, but these errors were encountered: