event add store test

This commit is contained in:
2020-07-19 12:15:23 +02:00
parent 7b00dd2975
commit fe14127648
14 changed files with 472 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
namespace App;
use App\Models\Event;
use App\Models\Image;
use App\Models\Memo;
use App\Models\ToDoList;
@@ -98,4 +99,9 @@ class User extends Authenticatable
$userImage->path = 'images/default-cover.jpg';
});
}
public function events(): HasMany
{
return $this->hasMany(Event::class);
}
}