PATH:
home
/
lab2454c
/
costbloc.com
/
vendor
/
kitloong
/
laravel-migrations-generator
/
src
/
MigrationsGenerator
<?php namespace MigrationsGenerator; use Illuminate\Support\ServiceProvider; class MigrationsGeneratorServiceProvider extends ServiceProvider { /** * Indicates if loading of the provider is deferred. * * @var bool */ protected $defer = false; /** * Register the service provider. * * @return void * @throws \Illuminate\Contracts\Container\BindingResolutionException * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException */ public function register() { $this->registerConfig(); // Bind the Repository Interface to $app['migrations.repository'] $this->app->bind('Illuminate\Database\Migrations\MigrationRepositoryInterface', function ($app) { return $app['migration.repository']; }); $this->app->singleton(MigrationsGeneratorSetting::class, function () { return new MigrationsGeneratorSetting(); }); } /** * Bootstrap the application events. * * @return void */ public function boot() { if ($this->app->runningInConsole()) { $this->commands([ MigrateGenerateCommand::class, ]); } } /** * Register the config path. * * @throws \Illuminate\Contracts\Container\BindingResolutionException * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException */ protected function registerConfig() { $packageConfigFile = __DIR__.'/../config/config.php'; $this->app->make('config')->set( 'generators.config', $this->app->make('files')->getRequire($packageConfigFile) ); } }
[-] MigrationsGeneratorSetting.php
[edit]
[+]
Generators
[+]
..
[+]
stub
[-] MigrationsGeneratorServiceProvider.php
[edit]
[+]
DBAL
[+]
Repositories
[-] MigrateGenerateCommand.php
[edit]
[+]
Support
[+]
Models
[+]
Schema