28 lines
461 B
PHP
28 lines
461 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Models\Base;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Rank extends Base
|
|
{
|
|
protected $fillable = [];
|
|
protected $guarded = [];
|
|
|
|
/**
|
|
* 这个属性应该被转换为原生类型.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $casts = [
|
|
// 'explain' => 'array',
|
|
// 'feature' => 'array'
|
|
];
|
|
|
|
public function subRanks()
|
|
{
|
|
return $this->hasMany(SubRank::class);
|
|
}
|
|
}
|