File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 5
5
[ ![ GitHub Code Style Action Status] ( https://img.shields.io/github/workflow/status/maize-tech/laravel-nova-eloquent-sortable/Fix%20PHP%20code%20style%20issues?label=code%20style )] ( https://github.com/maize-tech/laravel-nova-eloquent-sortable/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain )
6
6
[ ![ Total Downloads] ( https://img.shields.io/packagist/dt/maize-tech/laravel-nova-eloquent-sortable.svg?style=flat-square )] ( https://packagist.org/packages/maize-tech/laravel-nova-eloquent-sortable )
7
7
8
- Easily add inline sortable actions to any model in Laravel Nova.
8
+ Easily add inline sortable actions to any resource in Laravel Nova.
9
9
10
10
> This package is heavily based on Spatie's [ Eloquent Sortable] ( https://github.com/spatie/eloquent-sortable ) .
11
11
> Please make sure to read its documentation and installation guide before proceeding!
@@ -49,18 +49,18 @@ return [
49
49
50
50
## Usage
51
51
52
- To use the package, add the ` Maize\NovaEloquentSortable\HasEloquentSortable ` trait to the nova model where you want to have marks:
52
+ To use the package, add the ` Maize\NovaEloquentSortable\HasEloquentSortable ` trait to the nova resource where you want to have marks:
53
53
54
54
``` php
55
55
use Laravel\Nova\Resource;
56
56
use Maize\NovaEloquentSortable\HasEloquentSortable;
57
57
58
- class Model extends Resource {
58
+ class MyResource extends Resource {
59
59
use HasEloquentSortable;
60
60
}
61
61
```
62
62
63
- Once done, all you have to do is include all the actions you need for the given model :
63
+ Once done, all you have to do is include all the actions you need for the given resource :
64
64
65
65
``` php
66
66
use Maize\NovaEloquentSortable\Actions\MoveOrderDownAction;
You can’t perform that action at this time.
0 commit comments