Revert sorting
This commit is contained in:
@ -3,18 +3,9 @@
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Spatie\EloquentSortable\Sortable;
|
||||
use Spatie\EloquentSortable\SortableTrait;
|
||||
|
||||
class Vehicles extends Model implements Sortable
|
||||
class Vehicles extends Model
|
||||
{
|
||||
use SortableTrait;
|
||||
|
||||
public $sortable = [
|
||||
'order_column_name' => 'owner',
|
||||
'sort_when_creating' => true,
|
||||
];
|
||||
|
||||
protected $table = 'vehicles';
|
||||
|
||||
protected $fillable = [
|
||||
|
Reference in New Issue
Block a user