@@ -33,7 +33,7 @@ public function handle()
33
33
{
34
34
$ object_name = $ this ->argument ('object-name ' );
35
35
36
- while (! $ object_name ) {
36
+ while (! $ object_name ) {
37
37
$ object_name = $ this ->ask ('What is the name of the request object you are logging? (e.g. facebook becomes FacebookRequestLog) ' );
38
38
}
39
39
@@ -69,7 +69,7 @@ public function createModel(string $class_name, string $table_name, array $confi
69
69
$ stub = $ this ->getStubWithReplacements ($ config ['model_stub ' ], [
70
70
'{TABLE_NAME} ' => $ table_name ,
71
71
'{CLASS_NAME} ' => $ class_name ,
72
- '{NAMESPACE} ' => 'App \\' . str_replace ('/ ' , '\\' , str_replace (app_path () . '/ ' , '' , $ config ['model_path ' ])),
72
+ '{NAMESPACE} ' => 'App \\' . str_replace ('/ ' , '\\' , str_replace (app_path () . '/ ' , '' , $ config ['model_path ' ])),
73
73
]);
74
74
75
75
$ filename = $ config ['model_path ' ] . DIRECTORY_SEPARATOR . $ class_name . '.php ' ;
@@ -85,10 +85,10 @@ public function createMigration(string $object_name, array $config): void
85
85
$ file_slug = "create_ {$ table_name }_table " ;
86
86
87
87
$ stub = $ this ->getStubWithReplacements ($ config ['migration_stub ' ], [
88
- '{TABLE_NAME} ' => $ table_name ,
89
- '{CLASS_NAME} ' => Str::studly ($ file_slug ),
90
- '{PROCESS_IDS_SETUP} ' => $ this ->generateMigrationProcessStamps ($ config ),
91
- '{PRECISION} ' => $ this ->generatePrecisionValue ($ config ),
88
+ '{TABLE_NAME} ' => $ table_name ,
89
+ '{CLASS_NAME} ' => Str::studly ($ file_slug ),
90
+ '{PROCESS_IDS_SETUP} ' => $ this ->generateMigrationProcessStamps ($ config ),
91
+ '{PRECISION} ' => $ this ->generatePrecisionValue ($ config ),
92
92
]);
93
93
94
94
$ filename = $ config ['migration_path ' ] . DIRECTORY_SEPARATOR . $ this ->generateMigrationFilename ($ file_slug );
0 commit comments