block-explorer/app/Tag.php

43 lines
764 B
PHP
Raw Normal View History

2021-01-17 21:50:21 +01:00
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
/**
* @property integer $id
* @property string $tag
* @property string $created_at
* @property string $modified_at
* @property ClaimTag[] $claimTags
*/
class Tag extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'tag';
/**
* The "type" of the auto-incrementing ID.
*
* @var string
*/
protected $keyType = 'integer';
/**
* @var array
*/
protected $fillable = ['tag', 'created_at', 'modified_at'];
/**
* @return \Illuminate\Database\Eloquent\Relations\HasMany
*/
public function claimTags()
{
return $this->hasMany('App\ClaimTag');
}
}