@@ -63,18 +63,18 @@ protected function buildDefinition(Model $model)
63
63
}
64
64
65
65
if ($ column ->dataType () === 'id ' ) {
66
- $ name = Str::substr ($ column ->name (), 0 , -3 );
67
- $ class = Str::studly ($ column ->attributes ()[0 ] ?? $ name );
68
-
69
- $ definition .= self ::INDENT . "' {$ column ->name ()}' => " ;
70
- $ definition .= sprintf ("factory(\App\%s::class) " , $ class );
71
- $ definition .= ', ' . PHP_EOL ;
72
- } else {
73
- $ definition .= self ::INDENT . "' {$ column ->name ()}' => " ;
74
- $ faker = $ this ->fakerData ($ column ->name ()) ?? $ this ->fakerDataType ($ column ->dataType ());
75
- $ definition .= '$faker-> ' . $ faker ;
76
- $ definition .= ', ' . PHP_EOL ;
77
- }
66
+ $ name = Str::substr ($ column ->name (), 0 , -3 );
67
+ $ class = Str::studly ($ column ->attributes ()[0 ] ?? $ name );
68
+
69
+ $ definition .= self ::INDENT . "' {$ column ->name ()}' => " ;
70
+ $ definition .= sprintf ("factory(\App\%s::class) " , $ class );
71
+ $ definition .= ', ' . PHP_EOL ;
72
+ } else {
73
+ $ definition .= self ::INDENT . "' {$ column ->name ()}' => " ;
74
+ $ faker = $ this ->fakerData ($ column ->name ()) ?? $ this ->fakerDataType ($ column ->dataType ());
75
+ $ definition .= '$faker-> ' . $ faker ;
76
+ $ definition .= ', ' . PHP_EOL ;
77
+ }
78
78
}
79
79
80
80
return trim ($ definition );
0 commit comments