Refactoring

This commit is contained in:
Peter Papp
2021-07-22 14:24:07 +02:00
parent 69eb8dacce
commit 093c9451ec
34 changed files with 214 additions and 120 deletions
+7 -6
View File
@@ -5,16 +5,17 @@ use Kyslik\ColumnSortable\Sortable;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
/**
* @property string slug
* @property string title
* @property boolean visibility
* @property string content
*/
class Page extends Model
{
use Sortable, HasFactory;
/**
* Sortable columns
*
* @var string[]
*/
public $sortable = [
public array $sortable = [
'title',
'slug',
'visibility',