二次改版

This commit is contained in:
2022-06-29 17:03:47 +08:00
parent 2288b76e4e
commit 619e493b0e
168 changed files with 4676 additions and 1759 deletions

28
app/Models/Leader.php Normal file
View File

@@ -0,0 +1,28 @@
<?php
namespace App\Models;
use App\Models\Traits\BelongsToCategory;
use App\Models\Traits\HasCovers;
use App\Models\Traits\HasSort;
use Illuminate\Database\Eloquent\Model;
class Leader extends Model
{
use BelongsToCategory,
HasCovers,
HasSort;
const STATUS_FALSE = 0;
const STATUS_TRUE = 1;
const STATUS = [
self::STATUS_FALSE => '关闭',
self::STATUS_TRUE => '开启',
];
public function getLinkAttribute()
{
return route('leader.show', $this);
}
}