todo front in work

This commit is contained in:
2020-04-27 11:06:12 +02:00
parent e1d9c02c5e
commit 94d6e6a4dc
9 changed files with 132 additions and 12 deletions

View File

@@ -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);
}
}