summaryrefslogtreecommitdiff
path: root/app/AnimeDetails.php
blob: 2d377bc57307310c1bcd5e1c08747a34a23181cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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');
	}
}