eliteregistry/app/Models/Ships.php

16 lines
285 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Kyslik\ColumnSortable\Sortable;
class Ships extends Model
{
use Sortable;
public $sortable = ['shipId', 'shipName', 'shipOwner', 'shipType', 'shipClass'];
protected $casts = ['id' => 'string'];
}