Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Commit d38a922

Browse files
committed
small fix and cleanup
1 parent 97c5a46 commit d38a922

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/SimpleMenu.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ public function __construct()
2525
$this->listFileDir = config('simpleMenu.routeListPath');
2626
$this->localeCodes = array_keys(LaravelLocalization::getSupportedLocales());
2727

28-
static::create_LFD($this->listFileDir);
28+
if ($this->listFileDir) {
29+
static::create_LFD($this->listFileDir);
30+
}
2931

3032
if (!app()->runningInConsole()) {
3133
// create caches

src/SimpleMenuServiceProvider.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ class SimpleMenuServiceProvider extends ServiceProvider
1919
{
2020
protected $packagesSP = [
2121
\Baum\Providers\BaumServiceProvider::class,
22-
\Spatie\Translatable\TranslatableServiceProvider::class,
23-
\Spatie\Permission\PermissionServiceProvider::class,
2422
\Mcamara\LaravelLocalization\LaravelLocalizationServiceProvider::class,
2523
];
2624

0 commit comments

Comments
 (0)