Files
UNIT3D-Community-Edition/app/Graveyard.php
HDVinnie 34cbe11671 (Add) Graveyard MyRessurections 🆕
- abilty for users to track there graveyard resurrections
2018-12-14 21:20:13 -05:00

47 lines
971 B
PHP

<?php
/**
* NOTICE OF LICENSE.
*
* UNIT3D is open-sourced software licensed under the GNU 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;
use Illuminate\Database\Eloquent\Model;
class Graveyard extends Model
{
/**
* The Database Table Used By The Model.
*
* @var string
*/
protected $table = 'graveyard';
/**
* Belongs To A User.
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function user()
{
return $this->belongsTo(User::class);
}
/**
* Belongs To A Torrent.
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function torrent()
{
return $this->belongsTo(Torrent::class);
}
}