Skip to content

Commit 5210793

Browse files
authored
Merge pull request #15 from nevadskiy/refactoring
Update README.md
2 parents c6480b3 + 7e0001c commit 5210793

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1+
[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct-single.svg)](https://stand-with-ukraine.pp.ua)
2+
13
# 🔢 Arrange Laravel models in a given order
24

35
[![PHPUnit](https://img.shields.io/github/actions/workflow/status/nevadskiy/laravel-position/phpunit.yml?branch=master)](https://packagist.org/packages/nevadskiy/laravel-position)
46
[![Code Coverage](https://img.shields.io/codecov/c/github/nevadskiy/laravel-position?token=9X6AQQYCPA)](https://packagist.org/packages/nevadskiy/laravel-position)
57
[![Latest Stable Version](https://img.shields.io/packagist/v/nevadskiy/laravel-position)](https://packagist.org/packages/nevadskiy/laravel-position)
68
[![License](https://img.shields.io/github/license/nevadskiy/laravel-position)](https://packagist.org/packages/nevadskiy/laravel-position)
79

8-
[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct-single.svg)](https://stand-with-ukraine.pp.ua)
9-
1010
## ✅ Requirements
1111

1212
- Laravel `7.0` or newer
@@ -70,7 +70,7 @@ echo $category->position; // 2
7070
By default, the created model takes a position at the very end of the sequence. The very first record takes the position with the value `0`. You can customize this behavior by overriding the `getNextPosition` method:
7171
7272
```php
73-
public function getNextPosition(): ?int
73+
public function getNextPosition(): int
7474
{
7575
return 0;
7676
}

0 commit comments

Comments
 (0)