Skip to content

Commit 6e54266

Browse files
committed
fix: user crud fixes
1 parent 8405887 commit 6e54266

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Commands/Publish/PublishUserCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ private function updateRoutes()
7979
$routeContents = file_get_contents($path);
8080

8181
$routesTemplate = get_template('routes.user', 'laravel-generator');
82+
$routesTemplate = $this->fillTemplate($routesTemplate);
8283

8384
$routeContents .= "\n\n".$routesTemplate;
8485

templates/routes/user.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Route::resource('users', 'UserController')->middleware('auth');
1+
Route::resource('users', $NAMESPACE_CONTROLLER$\UserController::class)->middleware('auth');

0 commit comments

Comments
 (0)