We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 996a09a + 05b7cd2 commit 6096cbbCopy full SHA for 6096cbb
src/Console/Commands/CrudBackpackCommand.php
@@ -78,7 +78,14 @@ public function handle()
78
$this->call('route:cache');
79
}
80
81
- $url = Str::of(config('app.url'))->finish('/')->append('admin/')->append($nameKebab);
+ $routePrefix = config('backpack.base.route_prefix');
82
+
83
+ $url = Str::of(config('app.url'))
84
+ ->finish('/')
85
+ ->when($routePrefix !== '', function ($string) use ($routePrefix) {
86
+ return $string->append($routePrefix)->finish('/');
87
+ })
88
+ ->append($nameKebab);
89
90
$this->newLine();
91
$this->line(" Done! Go to <fg=blue>$url</> to see the CRUD in action.");
0 commit comments