40 lines
927 B
PHP
40 lines
927 B
PHP
<?php
|
|
|
|
namespace App\Set;
|
|
|
|
use Illuminate\Database\Eloquent\Builder;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* @property int $id
|
|
* @property string $name
|
|
* @property string $description
|
|
* @property string $icon_image_url
|
|
* @property int $sort_order
|
|
*
|
|
* @method static Builder<static>|SetModel newModelQuery()
|
|
* @method static Builder<static>|SetModel newQuery()
|
|
* @method static Builder<static>|SetModel query()
|
|
* @method static Builder<static>|SetModel whereId($value)
|
|
* @method static Builder<static>|SetModel whereName($value)
|
|
* @method static Builder<static>|SetModel whereSortOrder($value)
|
|
*
|
|
* @mixin \Eloquent
|
|
*/
|
|
class SetModel extends Model
|
|
{
|
|
protected $table = 'sets';
|
|
|
|
public $timestamps = false;
|
|
|
|
protected $fillable = [
|
|
'name',
|
|
'description',
|
|
'icon_image_url',
|
|
'sort_order',
|
|
];
|
|
|
|
protected $casts = [
|
|
'sort_order' => 'integer',
|
|
];
|
|
}
|