eliteregistry/app/Models/Ships.php

16 lines
260 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'];
protected $casts = ['id' => 'string'];
}