<?php

namespace App\Models;

use App\Models\Traits\BelongsToCategory;
use App\Models\Traits\HasCovers;
use App\Models\Traits\ScopeStatus;

class Staff extends Model
{
    use BelongsToCategory, HasCovers,ScopeStatus;


    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);
    }
}
