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