26 lines
445 B
PHP
26 lines
445 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Models\Traits\BelongsToCategory;
|
|
use App\Models\Traits\HasCovers;
|
|
|
|
class Staff extends Model
|
|
{
|
|
use BelongsToCategory, HasCovers;
|
|
|
|
|
|
const STATUS_FALSE = 0;
|
|
const STATUS_TRUE = 1;
|
|
|
|
const STATUS = [
|
|
self::STATUS_FALSE => '关闭',
|
|
self::STATUS_TRUE => '开启',
|
|
];
|
|
|
|
public function getLinkAttribute(): string
|
|
{
|
|
return route('staff.show', $this);
|
|
}
|
|
}
|