| 1234567891011121314151617181920212223242526 |
- <?php
- namespace App\Notifications\Push\Cliente\Motivacional;
- use App\Enums\PushNotificationCategoryEnum;
- use App\Enums\PushNotificationTargetEnum;
- use App\Models\User;
- use App\Notifications\Push\BasePushNotification;
- use Illuminate\Database\Eloquent\Collection;
- class Motivacional2Push extends BasePushNotification
- {
- public function label(): string { return 'cliente_motivacional_2'; }
- public function title(): string { return 'Chegue em casa e relaxe'; }
- public function body(): string { return 'A limpeza fica por nossa conta.'; }
- public function target(): PushNotificationTargetEnum { return PushNotificationTargetEnum::CLIENTE; }
- public function category(): PushNotificationCategoryEnum { return PushNotificationCategoryEnum::MOTIVACIONAL; }
- public function eligibleUsers(): Collection
- {
- return User::whereHas('client')
- ->where('registration_complete', true)
- ->get();
- }
- }
|