File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ Extend the class [`Autoincrement`](src/Database/Autoincrement.php) with a descri
29
29
``` php
30
30
use MLL\LaravelUtils\Database\Autoincrement;
31
31
32
- final class MaxFooId extends Autoincrement
32
+ final class MaxFooID extends Autoincrement
33
33
{
34
34
public static function name(): string
35
35
{
@@ -41,8 +41,9 @@ final class MaxFooId extends Autoincrement
41
41
Generate a migration and call the ` createTable() ` method in it:
42
42
43
43
``` php
44
- public function up() {
45
- MaxFooId::createTable();
44
+ public function up(): void
45
+ {
46
+ MaxFooID::createTable();
46
47
}
47
48
```
48
49
@@ -54,7 +55,7 @@ public $incrementing = false;
54
55
protected static function booted(): void
55
56
{
56
57
self::creating(function (self $instance): void {
57
- $instance->id ??= MaxFooId ::next();
58
+ $instance->id ??= MaxFooID ::next();
58
59
});
59
60
```
60
61
You can’t perform that action at this time.
0 commit comments