more update changes

This commit is contained in:
denisdulici 2019-12-13 19:27:14 +03:00
parent 1cb16e41e4
commit d8db1c4dd0
2 changed files with 10 additions and 5 deletions

View File

@ -14,9 +14,9 @@ use App\Models\Common\EmailTemplate;
use App\Models\Common\Report; use App\Models\Common\Report;
use App\Utilities\Overrider; use App\Utilities\Overrider;
use Artisan; use Artisan;
use File;
use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\Storage;
class Version200 extends Listener class Version200 extends Listener
{ {
@ -887,11 +887,11 @@ class Version200 extends Listener
]; ];
foreach ($files as $file) { foreach ($files as $file) {
Storage::delete(base_path($file)); File::delete(base_path($file));
} }
foreach ($directories as $directory) { foreach ($directories as $directory) {
Storage::deleteDirectory(base_path($directory)); File::deleteDirectory(base_path($directory));
} }
} }

View File

@ -2,7 +2,9 @@
namespace App\Providers; namespace App\Providers;
use Blade;
use Illuminate\Support\ServiceProvider as Provider; use Illuminate\Support\ServiceProvider as Provider;
use Schema;
class App extends Provider class App extends Provider
{ {
@ -14,9 +16,12 @@ class App extends Provider
public function boot() public function boot()
{ {
// Laravel db fix // Laravel db fix
\Schema::defaultStringLength(191); Schema::defaultStringLength(191);
\Blade::withoutDoubleEncoding(); // @todo Remove the if control after 1.3 update
if (method_exists('Blade', 'withoutDoubleEncoding')) {
Blade::withoutDoubleEncoding();
}
} }
/** /**