From cf2152a7dd86b7a03078f3df5f347a73723e7a85 Mon Sep 17 00:00:00 2001 From: marco Date: Mon, 19 Aug 2024 09:30:44 +0200 Subject: [PATCH] up --- Console/Commands/TelegramWebhook.php | 1 + Filament/Clusters/Test/Pages/SendTelegram.php | 2 +- Models/Contact.php | 8 +++++ Models/Notification.php | 34 ++++++++++--------- Models/NotifyTheme.php | 6 ++++ Models/NotifyThemeable.php | 6 ++++ 6 files changed, 40 insertions(+), 17 deletions(-) diff --git a/Console/Commands/TelegramWebhook.php b/Console/Commands/TelegramWebhook.php index 45dc5dbd..f088a683 100755 --- a/Console/Commands/TelegramWebhook.php +++ b/Console/Commands/TelegramWebhook.php @@ -11,6 +11,7 @@ class TelegramWebhook extends Command { protected $signature = 'telegram:set-webhook'; + protected $description = 'Set Telegram webhook URL'; public function handle(): void diff --git a/Filament/Clusters/Test/Pages/SendTelegram.php b/Filament/Clusters/Test/Pages/SendTelegram.php index 56ba7f82..819f09d8 100755 --- a/Filament/Clusters/Test/Pages/SendTelegram.php +++ b/Filament/Clusters/Test/Pages/SendTelegram.php @@ -107,7 +107,7 @@ public function sendEmail(): void */ // Notification::sendNow($developers, new TelegramNotification()); Notification::route('telegram', $data['to']) - ->notify(new TelegramNotification()); + ->notify(new TelegramNotification); } protected function getForms(): array diff --git a/Models/Contact.php b/Models/Contact.php index 81c009ee..6b2e843f 100755 --- a/Models/Contact.php +++ b/Models/Contact.php @@ -49,6 +49,7 @@ * @property string|null $sms_status_txt * @property int|null $duplicate_count * @property int|null $order_column + * * @method static \Modules\Notify\Database\Factories\ContactFactory factory($count = null, $state = []) * @method static Builder|Contact newModelQuery() * @method static Builder|Contact newQuery() @@ -75,9 +76,12 @@ * @method static Builder|Contact whereUserId($value) * @method static Builder|Contact whereValue($value) * @method static Builder|Contact whereVerifiedAt($value) + * * @mixin Eloquent + * * @property string|null $email * @property string|null $mobile_phone + * * @method static Builder|Contact whereAttribute1($value) * @method static Builder|Contact whereAttribute10($value) * @method static Builder|Contact whereAttribute11($value) @@ -96,6 +100,10 @@ * @method static Builder|Contact whereEmail($value) * @method static Builder|Contact whereFirstName($value) * @method static Builder|Contact whereUsesleft($value) + * + * @property-read \Modules\Fixcity\Models\Profile|null $creator + * @property-read \Modules\Fixcity\Models\Profile|null $updater + * * @mixin \Eloquent */ class Contact extends BaseModel diff --git a/Models/Notification.php b/Models/Notification.php index ff4bedaa..d1d281ad 100755 --- a/Models/Notification.php +++ b/Models/Notification.php @@ -12,25 +12,25 @@ /** * Modules\Notify\Models\Notification. * - * @property string $id - * @property string $type - * @property string $notifiable_type - * @property int $notifiable_id - * @property array $data - * @property Carbon|null $read_at - * @property Carbon|null $created_at - * @property string|null $created_by - * @property Carbon|null $updated_at - * @property string|null $updated_by + * @property string $id + * @property string $type + * @property string $notifiable_type + * @property int $notifiable_id + * @property array $data + * @property Carbon|null $read_at + * @property Carbon|null $created_at + * @property string|null $created_by + * @property Carbon|null $updated_at + * @property string|null $updated_by * @property Model|\Eloquent $notifiable * - * @method static DatabaseNotificationCollection all($columns = ['*']) - * @method static DatabaseNotificationCollection get($columns = ['*']) + * @method static DatabaseNotificationCollection all($columns = ['*']) + * @method static DatabaseNotificationCollection get($columns = ['*']) * @method static \Illuminate\Database\Eloquent\Builder|Notification newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Notification newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Notification query() - * @method static Builder|DatabaseNotification read() - * @method static Builder|DatabaseNotification unread() + * @method static Builder|DatabaseNotification read() + * @method static Builder|DatabaseNotification unread() * @method static \Illuminate\Database\Eloquent\Builder|Notification whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereCreatedBy($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereData($value) @@ -41,8 +41,8 @@ * @method static \Illuminate\Database\Eloquent\Builder|Notification whereType($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereUpdatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereUpdatedBy($value) - * @method static DatabaseNotificationCollection all($columns = ['*']) - * @method static DatabaseNotificationCollection get($columns = ['*']) + * @method static DatabaseNotificationCollection all($columns = ['*']) + * @method static DatabaseNotificationCollection get($columns = ['*']) * * @mixin Eloquent * @@ -114,6 +114,8 @@ * @method static DatabaseNotificationCollection get($columns = ['*']) * @method static DatabaseNotificationCollection all($columns = ['*']) * @method static DatabaseNotificationCollection get($columns = ['*']) + * @method static DatabaseNotificationCollection all($columns = ['*']) + * @method static DatabaseNotificationCollection get($columns = ['*']) * * @mixin \Eloquent */ diff --git a/Models/NotifyTheme.php b/Models/NotifyTheme.php index 48913590..3c6cbf79 100755 --- a/Models/NotifyTheme.php +++ b/Models/NotifyTheme.php @@ -38,6 +38,7 @@ * @property Model|\Eloquent $linkable * @property MediaCollection $media * @property int|null $media_count + * * @method static \Modules\Notify\Database\Factories\NotifyThemeFactory factory($count = null, $state = []) * @method static Builder|NotifyTheme newModelQuery() * @method static Builder|NotifyTheme newQuery() @@ -61,7 +62,12 @@ * @method static Builder|NotifyTheme whereUpdatedAt($value) * @method static Builder|NotifyTheme whereUpdatedBy($value) * @method static Builder|NotifyTheme whereViewParams($value) + * * @mixin Eloquent + * + * @property-read \Modules\Fixcity\Models\Profile|null $creator + * @property-read \Modules\Fixcity\Models\Profile|null $updater + * * @mixin \Eloquent */ class NotifyTheme extends BaseModel implements HasMedia diff --git a/Models/NotifyThemeable.php b/Models/NotifyThemeable.php index 3b0bbb12..a40518ff 100755 --- a/Models/NotifyThemeable.php +++ b/Models/NotifyThemeable.php @@ -18,6 +18,7 @@ * @property Carbon|null $updated_at * @property string|null $updated_by * @property int|null $notify_theme_id + * * @method static Builder|NotifyThemeable newModelQuery() * @method static Builder|NotifyThemeable newQuery() * @method static Builder|NotifyThemeable query() @@ -29,7 +30,12 @@ * @method static Builder|NotifyThemeable whereNotifyThemeId($value) * @method static Builder|NotifyThemeable whereUpdatedAt($value) * @method static Builder|NotifyThemeable whereUpdatedBy($value) + * * @mixin Eloquent + * + * @property-read \Modules\Fixcity\Models\Profile|null $creator + * @property-read \Modules\Fixcity\Models\Profile|null $updater + * * @mixin \Eloquent */ class NotifyThemeable extends BaseMorphPivot {}