diff options
| author | horus | 2022-11-11 22:03:52 +0100 |
|---|---|---|
| committer | horus | 2022-11-11 22:03:52 +0100 |
| commit | 480515cf08d81040e416a943b046a09f9918937a (patch) | |
| tree | a4e1b0aae1839efdb55ac6e7b5a14a25c01f6b64 /app/AnimeDetails.php | |
| parent | 01087677544210e40b57c98a425f8f477fe64ac3 (diff) | |
| download | senpai-480515cf08d81040e416a943b046a09f9918937a.tar.gz | |
add model and logic for anime_details
Diffstat (limited to 'app/AnimeDetails.php')
| -rw-r--r-- | app/AnimeDetails.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/app/AnimeDetails.php b/app/AnimeDetails.php new file mode 100644 index 0000000..2d377bc --- /dev/null +++ b/app/AnimeDetails.php @@ -0,0 +1,21 @@ +<?php + +namespace App; + +use Illuminate\Database\Eloquent\Model; + +class AnimeDetails extends Model +{ + protected $table = 'anime_details'; + protected $fillable = [ + 'mal_id', + 'score_begin', + 'score_today', + 'watching', + 'members' + ]; + + public function anime() { + return $this->belongsTo('App\Anime', 'mal_id', 'mal_id'); + } +} |
