Skip to content

Commit 6119d2f

Browse files
author
riccardodallavia
committedOct 20, 2022
UPDATE documentation
1 parent 8138e55 commit 6119d2f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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
5555
use Laravel\Nova\Resource;
5656
use 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
6666
use Maize\NovaEloquentSortable\Actions\MoveOrderDownAction;

0 commit comments

Comments
 (0)