todo front in work
This commit is contained in:
@@ -59,6 +59,11 @@ class User extends Authenticatable
|
||||
return $this->hasMany(Memo::class);
|
||||
}
|
||||
|
||||
public function toDoLists() : HasMany
|
||||
{
|
||||
return $this->hasMany(ToDoList::class);
|
||||
}
|
||||
|
||||
public function images(): MorphMany
|
||||
{
|
||||
return $this->morphMany(Image::class, 'imageable');
|
||||
@@ -83,9 +88,4 @@ class User extends Authenticatable
|
||||
$userImage->path = 'images/default-cover.jpg';
|
||||
});
|
||||
}
|
||||
|
||||
public function toDoLists(): HasMany
|
||||
{
|
||||
return $this->hasMany(ToDoList::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user