Replace usage of array_ helper with Arr class directly to prepare for Laravel 5.8 changes

This commit is contained in:
DariusIII
2019-01-29 13:52:01 +01:00
parent 4b4de3acef
commit 08b8edbe2d
23 changed files with 57 additions and 34 deletions
+2 -1
View File
@@ -10,6 +10,7 @@ use App\Models\Category;
use App\Models\Settings;
use Blacklight\Contents;
use App\Models\Forumpost;
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\Auth;
use Illuminate\Pagination\LengthAwarePaginator;
@@ -86,7 +87,7 @@ class BasePageController extends Controller
$this->settings = new Settings();
$this->smarty = app('smarty.view');
foreach (array_get(config('ytake-laravel-smarty'), 'plugins_paths', []) as $plugins) {
foreach (Arr::get(config('ytake-laravel-smarty'), 'plugins_paths', []) as $plugins) {
$this->smarty->addPluginsDir($plugins);
}
$this->smarty->error_reporting = E_ALL & ~E_NOTICE;