mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-12 15:57:22 +00:00
Improve installed database detection
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
namespace InvoiceShelf\Providers;
|
||||
|
||||
use Illuminate\Pagination\Paginator;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use InvoiceShelf\Space\InstallUtils;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
@@ -18,7 +18,7 @@ class AppServiceProvider extends ServiceProvider
|
||||
Paginator::useBootstrapThree();
|
||||
$this->loadJsonTranslationsFrom(resource_path('scripts/locales'));
|
||||
|
||||
if (\Storage::disk('local')->has('database_created') && Schema::hasTable('abilities')) {
|
||||
if (InstallUtils::isDbCreated()) {
|
||||
$this->addMenus();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user