mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-20 17:02:16 +00:00
Invoice & Clients sorting
This commit is contained in:
@@ -3,6 +3,7 @@ namespace App\Models\Oasis;
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Str;
|
||||
use Kyslik\ColumnSortable\Sortable;
|
||||
use Laravel\Scout\Searchable;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
@@ -14,7 +15,7 @@ use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
*/
|
||||
class Client extends Model
|
||||
{
|
||||
use HasFactory, Searchable;
|
||||
use HasFactory, Searchable, Sortable;
|
||||
|
||||
public $guarded = ['id'];
|
||||
|
||||
@@ -22,6 +23,11 @@ class Client extends Model
|
||||
|
||||
protected $keyType = 'string';
|
||||
|
||||
public $sortable = [
|
||||
'created_at',
|
||||
'name',
|
||||
];
|
||||
|
||||
/**
|
||||
* Format avatar to full url
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user