Download app/Models/SocialRecurringAlert.php from medilis/teknolis: direct link, hf CLI and curl.
- Browser
- Download file 784 Bytes
-
https://huggingface.co/spaces/medilis/teknolis/resolve/main/app/Models/SocialRecurringAlert.php
- Command line
-
hf download hf://spaces/medilis/teknolis/app/Models/SocialRecurringAlert.php
-
curl -L -o SocialRecurringAlert.php https://huggingface.co/spaces/medilis/teknolis/resolve/main/app/Models/SocialRecurringAlert.php
784 Bytes
| namespace App\Models; | |
| use Illuminate\Database\Eloquent\Factories\HasFactory; | |
| use Illuminate\Database\Eloquent\Model; | |
| use Illuminate\Database\Eloquent\Relations\BelongsTo; | |
| class SocialRecurringAlert extends Model | |
| { | |
| use HasFactory; | |
| protected $fillable = [ | |
| 'user_id', | |
| 'social_recurring_campaign_id', | |
| 'type', | |
| 'title', | |
| 'message', | |
| 'context', | |
| 'read_at', | |
| ]; | |
| protected $casts = [ | |
| 'context' => 'array', | |
| 'read_at' => 'datetime', | |
| ]; | |
| public function user(): BelongsTo | |
| { | |
| return $this->belongsTo(User::class); | |
| } | |
| public function recurringCampaign(): BelongsTo | |
| { | |
| return $this->belongsTo(SocialRecurringCampaign::class, 'social_recurring_campaign_id'); | |
| } | |
| } | |