-@extends(backpack_user() && (starts_with(\Request::path(), config('backpack.base.route_prefix'))) ? 'backpack::layouts.top_left' : 'backpack::layouts.plain')
+@extends(backpack_user() && (Str::startsWith(\Request::path(), config('backpack.base.route_prefix'))) ? 'backpack::layouts.top_left' : 'backpack::layouts.plain')
{{-- show error using sidebar layout if looged in AND on an admin page; otherwise use a blank page --}}
@php
</div>
</div>
</div>
-@endsection
\ No newline at end of file
+@endsection
Route::group([
'namespace' => 'Backpack\BackupManager\app\Http\Controllers',
'prefix' => config('backpack.base.route_prefix', 'admin'),
- 'middleware' => ['web', 'admin','can:maintenance'],
+ 'middleware' => ['web', 'admin','can:toolbox:maintenance'],
], function () {
Route::get('backup', 'BackupController@index');
Route::put('backup/create', 'BackupController@create');