Skip to content

Commit 764a424

Browse files
committed
ID
1 parent 85d93d6 commit 764a424

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Extend the class [`Autoincrement`](src/Database/Autoincrement.php) with a descri
2929
```php
3030
use MLL\LaravelUtils\Database\Autoincrement;
3131

32-
final class MaxFooId extends Autoincrement
32+
final class MaxFooID extends Autoincrement
3333
{
3434
public static function name(): string
3535
{
@@ -41,8 +41,9 @@ final class MaxFooId extends Autoincrement
4141
Generate a migration and call the `createTable()` method in it:
4242

4343
```php
44-
public function up() {
45-
MaxFooId::createTable();
44+
public function up(): void
45+
{
46+
MaxFooID::createTable();
4647
}
4748
```
4849

@@ -54,7 +55,7 @@ public $incrementing = false;
5455
protected static function booted(): void
5556
{
5657
self::creating(function (self $instance): void {
57-
$instance->id ??= MaxFooId::next();
58+
$instance->id ??= MaxFooID::next();
5859
});
5960
```
6061

0 commit comments

Comments
 (0)