Files
UNIT3D-Community-Edition/app/Models/Keyword.php
HDVinnie 67a25d5daf update: keywords system
- Im going to further refactor this as keywords should belong to media/meta and not torrent specific
2022-06-28 13:19:11 -04:00

44 lines
918 B
PHP

<?php
/**
* NOTICE OF LICENSE.
*
* UNIT3D 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
*
* @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0
* @author HDVinnie
*/
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Keyword extends Model
{
/**
* The Attributes That Are Mass Assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
/**
* Indicates If The Model Should Be Timestamped.
*
* @var bool
*/
public $timestamps = false;
/**
* Belongs To Many Torrents.
*/
public function torrents(): \Illuminate\Database\Eloquent\Relations\BelongsToMany
{
return $this->belongsToMany(Torrent::class);
}
}