Two month of work
This commit is contained in:
@@ -22,6 +22,8 @@ public function user()
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
|
||||
// Polymorphic relationship to the notable model (e.g., Lead, Contact, PipelineItem, etc.)
|
||||
// https://laravel.com/docs/12.x/eloquent-relationships#one-to-many-polymorphic-relations
|
||||
public function notable()
|
||||
{
|
||||
return $this->morphTo();
|
||||
|
||||
Reference in New Issue
Block a user