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()