Adding Laravel Project
This commit is contained in:
15
app/Models/Ships.php
Normal file
15
app/Models/Ships.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?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'];
|
||||
}
|
Reference in New Issue
Block a user