Skip to content

Commit

Permalink
Refactoring compatibility with Laravel versions
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensrocha committed Nov 3, 2019
1 parent 8ae6984 commit 29978bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace anlutro\LaravelSettings;

use Illuminate\Foundation\Application;
use Illuminate\Support\Arr;
use Blade;

class ServiceProvider extends \Illuminate\Support\ServiceProvider
Expand Down Expand Up @@ -76,7 +77,7 @@ public function boot()
if(function_exists('array_dot')){
$override_values = array_dot($override);
}else{
$override_values = \Illuminate\Support\Arr::dot($override);
$override_values = Arr::dot($override);
}

foreach ($override_values as $config_key => $setting_key) {
Expand Down

0 comments on commit 29978bc

Please sign in to comment.