File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 22
22
| command with default laravel commands. You can change it to `make:crud`
23
23
| Default is : 'laraflow:make-crud'
24
24
*/
25
- 'command ' => " laraflow:make-crud " ,
25
+ 'command ' => ' laraflow:make-crud ' ,
26
26
27
27
/*
28
28
|--------------------------------------------------------------------------
56
56
| {CONTROLLER} => full namespace controller path
57
57
|
58
58
*/
59
- 'route_template ' => <<<HTML
59
+ 'route_template ' => <<<' HTML'
60
60
Route::apiResource('{RESOURCE_URI}', {CONTROLLER});
61
61
HTML,
62
62
Original file line number Diff line number Diff line change @@ -214,25 +214,25 @@ private function updateRouteFile(): void
214
214
file_put_contents ($ filePath , $ fileContent );
215
215
}
216
216
217
- private function renderRouteTemplate ():string
217
+ private function renderRouteTemplate (): string
218
218
{
219
219
$ singleName = Str::kebab (basename ($ this ->getResourceName ()));
220
220
221
221
$ resourceName = Str::plural ($ singleName );
222
222
223
223
$ controller = GeneratorPath::convertPathToNamespace (
224
224
'\\'
225
- . $ this ->getModuleName ()
226
- . '\\'
227
- . GenerateConfigReader::read ('controller ' )->getNamespace ()
228
- . '\\'
229
- . $ this ->getResourceName ()
230
- . 'Controller::class '
225
+ .$ this ->getModuleName ()
226
+ .'\\'
227
+ .GenerateConfigReader::read ('controller ' )->getNamespace ()
228
+ .'\\'
229
+ .$ this ->getResourceName ()
230
+ .'Controller::class '
231
231
);
232
232
233
233
$ layout = config ('crud.route_template ' , "Route::apiResource('{RESOURCE_URI}', {CONTROLLER}); \n" );
234
234
235
- $ template = $ layout . "\n\n //DO NOT REMOVE THIS LINE// \n" ;
235
+ $ template = $ layout. "\n\n //DO NOT REMOVE THIS LINE// \n" ;
236
236
237
237
$ replacements = [
238
238
'{RESOURCE_URI} ' => $ resourceName ,
You can’t perform that action at this time.
0 commit comments