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.
1 parent a48e728 commit 70caca9Copy full SHA for 70caca9
src/HashidsServiceProvider.php
@@ -42,7 +42,7 @@ protected function setupConfig(Application $app)
42
{
43
$source = realpath(__DIR__.'/../config/hashids.php');
44
45
- if (class_exists('Illuminate\Foundation\Application', false)) {
+ if (class_exists('Illuminate\Foundation\Application', false) && $app->runningInConsole()) {
46
$this->publishes([$source => config_path('hashids.php')]);
47
} elseif (class_exists('Laravel\Lumen\Application', false)) {
48
$app->configure('hashids');
0 commit comments