Skip to main content

LaraBug/larabug-app

218 stars
2 code files
View LaraBug/larabug-app on GitHub

composer.json

Open in GitHub
{
"require": {
"php": "^8.0",
//
"spatie/eloquent-sortable": "^3.0",
//
}

app/Models/Documentation.php

Open in GitHub
use Spatie\EloquentSortable\Sortable;
use Illuminate\Database\Eloquent\Model;
use Spatie\EloquentSortable\SortableTrait;
 
class Documentation extends Model implements Sortable
{
use SortableTrait;
 
public $sortable = [
'order_column_name' => 'order_column',
'sort_when_creating' => true,
];
}

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.