[edit] comment
This commit is contained in:
parent
50c8072fa2
commit
6f8e504e98
@ -3,10 +3,12 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace BvBeJ\Providers;
|
namespace BvBeJ\Providers;
|
||||||
|
|
||||||
|
use Illuminate\Support\Facades\DB;
|
||||||
use Illuminate\Support\ServiceProvider;
|
use Illuminate\Support\ServiceProvider;
|
||||||
use BvBeJ\Commands\ApolloConfigSync;
|
use BvBeJ\Commands\ApolloConfigSync;
|
||||||
use BvBeJ\Handles\Apollo\Client;
|
use BvBeJ\Handles\Apollo\Client;
|
||||||
use BvBeJ\Handles\BvBeJHandle;
|
use BvBeJ\Handles\BvBeJHandle;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
|
||||||
|
|
||||||
class BvBeJServiceProvider extends ServiceProvider
|
class BvBeJServiceProvider extends ServiceProvider
|
||||||
@ -26,6 +28,10 @@ class BvBeJServiceProvider extends ServiceProvider
|
|||||||
ApolloConfigSync::class
|
ApolloConfigSync::class
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Blueprint::macro('comment', function ($comment) {
|
||||||
|
$this->charset = DB::connection()->getConfig('charset') . " COMMENT='{$comment}'";
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user