Closed OthmanAlseagh closed 3 years ago
class Services { public function employees(): BelongsToMany { return $this->belongsToMany(Employee::class); } }
this is my class
Hi! See https://github.com/ziffmedia/nova-select-plus/blob/master/demo/app/Nova/Person.php#L54
The 3rd parameter to the make()
method must be the class of the Resource (not the model class) you are trying to map to.
Error Relationship Resource is not a valid class
when i use
SelectPlus::make('Employees', 'employees', \App\Models\Employee::onlyMines()->get())