From 77d87a66f85cf2ba9a2ead4e6c66c11e614f92d8 Mon Sep 17 00:00:00 2001 From: jk Date: Thu, 24 Jun 2021 11:00:00 +0100 Subject: [PATCH] first iteration of search functionality - likely to fail hard --- app/Models/Summarie.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Models/Summarie.php b/app/Models/Summarie.php index 8fd8e95..ba2ef21 100644 --- a/app/Models/Summarie.php +++ b/app/Models/Summarie.php @@ -4,10 +4,12 @@ namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; +use Kyslik\ColumnSortable\Sortable; class Summarie extends Model { - use HasFactory; + use HasFactory, Sortable; public $timestamps = false; protected $primaryKey = 'beer_id'; + public $sortable = ['name', 'keywords', 'type']; }