HasOneFilter

You're browsing the documentation for an old version of MoonShine. Consider upgrading your project to MoonShine 2.x.

Extends HasOne * has the same features
use MoonShine\Filters\HasOneFilter;
 
//...
 
public function filters(): array
{
return [
HasOne::make('Phone', resource: 'number')
->nullable()
];
}
 
//...