Download app/Models/SocialMediaAsset.php from medilis/teknolis: direct link, hf CLI and curl.
- Browser
- Download file 626 Bytes
-
https://huggingface.co/spaces/medilis/teknolis/resolve/main/app/Models/SocialMediaAsset.php
- Command line
-
hf download hf://spaces/medilis/teknolis/app/Models/SocialMediaAsset.php
-
curl -L -o SocialMediaAsset.php https://huggingface.co/spaces/medilis/teknolis/resolve/main/app/Models/SocialMediaAsset.php
626 Bytes
| namespace App\Models; | |
| use Illuminate\Database\Eloquent\Factories\HasFactory; | |
| use Illuminate\Database\Eloquent\Model; | |
| use Illuminate\Database\Eloquent\Relations\BelongsTo; | |
| class SocialMediaAsset extends Model | |
| { | |
| use HasFactory; | |
| protected $fillable = [ | |
| 'user_id', | |
| 'type', | |
| 'provider', | |
| 'prompt', | |
| 'url', | |
| 'thumbnail_url', | |
| 'width', | |
| 'height', | |
| 'duration_seconds', | |
| 'meta', | |
| ]; | |
| protected $casts = [ | |
| 'meta' => 'array', | |
| ]; | |
| public function user(): BelongsTo | |
| { | |
| return $this->belongsTo(User::class); | |
| } | |
| } | |