first push

This commit is contained in:
2020-09-14 09:56:48 +08:00
commit 24315e4798
698 changed files with 163980 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
<?php
namespace App\Providers;
use Encore\Admin\Config\Config;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\ServiceProvider;
//add fixed sql
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
Schema::defaultStringLength(191); //add fixed sql
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
$table = config('admin.extensions.config.table', 'admin_config');
if (Schema::hasTable($table)) {
Config::load();
}
}
}