Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
marco76tv committed Aug 19, 2024
1 parent 5d3ba52 commit cf2152a
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 17 deletions.
1 change: 1 addition & 0 deletions Console/Commands/TelegramWebhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
class TelegramWebhook extends Command
{
protected $signature = 'telegram:set-webhook';

protected $description = 'Set Telegram webhook URL';

public function handle(): void
Expand Down
2 changes: 1 addition & 1 deletion Filament/Clusters/Test/Pages/SendTelegram.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions Models/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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)
Expand All @@ -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
Expand Down
34 changes: 18 additions & 16 deletions Models/Notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<int, static> all($columns = ['*'])
* @method static DatabaseNotificationCollection<int, static> get($columns = ['*'])
* @method static DatabaseNotificationCollection<int, static> all($columns = ['*'])
* @method static DatabaseNotificationCollection<int, static> 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)
Expand All @@ -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<int, static> all($columns = ['*'])
* @method static DatabaseNotificationCollection<int, static> get($columns = ['*'])
* @method static DatabaseNotificationCollection<int, static> all($columns = ['*'])
* @method static DatabaseNotificationCollection<int, static> get($columns = ['*'])
*
* @mixin Eloquent
*
Expand Down Expand Up @@ -114,6 +114,8 @@
* @method static DatabaseNotificationCollection<int, static> get($columns = ['*'])
* @method static DatabaseNotificationCollection<int, static> all($columns = ['*'])
* @method static DatabaseNotificationCollection<int, static> get($columns = ['*'])
* @method static DatabaseNotificationCollection<int, static> all($columns = ['*'])
* @method static DatabaseNotificationCollection<int, static> get($columns = ['*'])
*
* @mixin \Eloquent
*/
Expand Down
6 changes: 6 additions & 0 deletions Models/NotifyTheme.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
* @property Model|\Eloquent $linkable
* @property MediaCollection<int, \Modules\Media\Models\Media> $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()
Expand All @@ -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
Expand Down
6 changes: 6 additions & 0 deletions Models/NotifyThemeable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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 {}

0 comments on commit cf2152a

Please sign in to comment.