二次改版

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

View File

@@ -0,0 +1,26 @@
<?php
namespace App\Models\Traits;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Str;
use function collect;
trait HasSort
{
/**
* Notes: 排序
*
* @Author: 玄尘
* @Date: 2022/6/28 14:49
* @param $query
* @param $ids
* @return mixed
*/
public function scopeBySort($query)
{
return $query->latest('sort')->latest();
}
}