File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 55[ ![ 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 )
66[ ![ 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 )
77
8- Easily add inline sortable actions to any model in Laravel Nova.
8+ Easily add inline sortable actions to any resource in Laravel Nova.
99
1010> This package is heavily based on Spatie's [ Eloquent Sortable] ( https://github.com/spatie/eloquent-sortable ) .
1111> Please make sure to read its documentation and installation guide before proceeding!
@@ -49,18 +49,18 @@ return [
4949
5050## Usage
5151
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:
5353
5454``` php
5555use Laravel\Nova\Resource;
5656use Maize\NovaEloquentSortable\HasEloquentSortable;
5757
58- class Model extends Resource {
58+ class MyResource extends Resource {
5959 use HasEloquentSortable;
6060}
6161```
6262
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 :
6464
6565``` php
6666use Maize\NovaEloquentSortable\Actions\MoveOrderDownAction;
You can’t perform that action at this time.
0 commit comments