warning if installer isnt locked
This commit is contained in:
parent
61a2c601cc
commit
3f3bb79fea
|
@ -2,11 +2,12 @@
|
|||
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Models\Settings;
|
||||
use Illuminate\Pagination\Paginator;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Spatie\QueryBuilder\QueryBuilderRequest;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
|
|
|
@ -18,6 +18,13 @@
|
|||
</section>
|
||||
<!-- END CONTENT HEADER -->
|
||||
|
||||
@if(!file_exists(public_path()."/install/install.lock") && Auth::User()->role == "admin")
|
||||
<div class="callout callout-danger">
|
||||
<h4>{{ __('The installer is not locked!') }}</h4>
|
||||
<p>{{ __('please create a file called "installer.lock" in your "dashboard/public/installer" directory!') }}
|
||||
</p>
|
||||
</div>
|
||||
@endif
|
||||
<!-- MAIN CONTENT -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
|
|
Loading…
Reference in a new issue