Spaces:
Running
Running
Download app/Models/Tagged.php from lisatthu35/ewa: direct link, hf CLI and curl.
- Browser
- Download file 577 Bytes
-
https://huggingface.co/spaces/lisatthu35/ewa/resolve/main/app/Models/Tagged.php
- Command line
-
hf download hf://spaces/lisatthu35/ewa/app/Models/Tagged.php
-
curl -L -o Tagged.php https://huggingface.co/spaces/lisatthu35/ewa/resolve/main/app/Models/Tagged.php
577 Bytes
| namespace App\Models; | |
| use Illuminate\Database\Eloquent\Factories\HasFactory; | |
| use Illuminate\Database\Eloquent\Model; | |
| class Tagged extends BaseModel | |
| { | |
| protected $table = "taggeds"; | |
| protected $fillable =[ | |
| 'comic_id', | |
| 'hashtag_id', | |
| 'is_main_tag', | |
| 'created_by', | |
| 'updated_by', | |
| 'created_at', | |
| 'updated_at', | |
| ]; | |
| public function hashTag(){ | |
| return $this->belongsTo(Hashtag::class,'hashtag_id'); | |
| } | |
| public function comic(){ | |
| return $this->belongsTo(Comic::class,'comic_id'); | |
| } | |
| } | |