Skip to content
This repository has been archived by the owner on Jan 21, 2021. It is now read-only.

Commit

Permalink
Only publish config if we're using full stack laravel
Browse files Browse the repository at this point in the history
  • Loading branch information
vinkla committed Jun 29, 2015
1 parent d71d8da commit 22edae9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Base62ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ public function boot()
protected function setupConfig()
{
$source = realpath(__DIR__.'/../config/base62.php');
$this->publishes([$source => config_path('base62.php')]);

if (class_exists('Illuminate\Foundation\Application', false)) {
$this->publishes([$source => config_path('base62.php')]);
}

$this->mergeConfigFrom($source, 'base62');
}

Expand Down

0 comments on commit 22edae9

Please sign in to comment.