Update some of the models

This commit is contained in:
DariusIII
2017-10-12 11:39:09 +02:00
parent d87a6fe7b9
commit b1c81a8cbc
6 changed files with 75 additions and 47 deletions
+43
View File
@@ -0,0 +1,43 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class AnidbTitle extends Model
{
/**
* @var string
*/
protected $primaryKey = 'anidbid';
/**
* @var bool
*/
protected $dateFormat = false;
/**
* @var bool
*/
public $incrementing = false;
/**
* @var bool
*/
public $timestamps = false;
/**
* @var array
*/
protected $guarded = [];
public function episode()
{
return $this->hasMany('App\Models\AnidbEpisode', 'anidbid');
}
public function info()
{
return $this->hasMany('App\Models\AnidbInfo', 'anidbid');
}
}