Filament::getTenant() has no such method
The getTenant method returns a generic type object which ofcourse doesn't have the same methods as my tenant model, is there any way to tell my IDE/PHPStan that those methods do exists?
Example:
Error that i get:
51 Access to an undefined property Illuminate\Database\Eloquent\Model::$id.
Solution:Jump to solution
you gonna need something like this
```php
/** @var Company $tenant */
$tenant = Filament::getTenant();...
2 Replies
Solution
you gonna need something like this
Amazing thanks!