From f425f8721dac3d7fe5bc16b8f4483dc53f31e3e8 Mon Sep 17 00:00:00 2001 From: Leon Morival Date: Mon, 18 May 2026 12:42:02 +0200 Subject: [PATCH] feat: meal posts --- app/Models/User.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Models/User.php b/app/Models/User.php index 2ff9510..d91a775 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -66,6 +66,11 @@ class User extends Authenticatable implements FilamentUser return $this->hasMany(DeviceToken::class); } + public function mealPosts(): HasMany + { + return $this->hasMany(MealPosts::class); + } + public function routeNotificationForExpoPush(): array { return $this->deviceTokens()