mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-02-09 21:19:22 -06:00
- Complete rewrite of meta data system - New media hub feature. - Torrent Bumping Refactor - Wish System Disabled until refactored - Fetch meta command added for fetchinng new meta on prexsisnting torrents. - plus alot more - closes #1428 - closes #1344 - closes #1147 - closes #361
40 lines
965 B
PHP
40 lines
965 B
PHP
<?php
|
|
/**
|
|
* NOTICE OF LICENSE.
|
|
*
|
|
* UNIT3D Community Edition is open-sourced software licensed under the GNU Affero General Public License v3.0
|
|
* The details is bundled with this project in the file LICENSE.txt.
|
|
*
|
|
* @project UNIT3D Community Edition
|
|
*
|
|
* @author HDVinnie <hdinnovations@protonmail.com>
|
|
* @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Collection extends Model
|
|
{
|
|
protected $guarded = [];
|
|
protected $primaryKey = 'id';
|
|
public $timestamps = false;
|
|
protected $table = 'collection';
|
|
|
|
/**
|
|
* Has Many Comments.
|
|
*
|
|
* @return \Illuminate\Database\Eloquent\Relations\HasMany
|
|
*/
|
|
public function comments()
|
|
{
|
|
return $this->hasMany(Comment::class, 'collection_id');
|
|
}
|
|
|
|
public function movie()
|
|
{
|
|
return $this->belongsToMany(Movie::class);
|
|
}
|
|
}
|