diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..836ac0f --- /dev/null +++ b/.gitignore @@ -0,0 +1,25 @@ +# User specific & automatically generated files # +################################################# +/composer.lock +/phpunit.xml +/phpcs.xml +/vendor +/build + +# IDE and editor specific files # +################################# +/nbproject +/.idea + +# OS generated files # +###################### +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +Icon? +ehthumbs.db +Thumbs.db +*.mo +*.phpunit.result.cache diff --git a/ConsoleServiceProvider.php b/ConsoleServiceProvider.php index 03a0e69..e3f5148 100644 --- a/ConsoleServiceProvider.php +++ b/ConsoleServiceProvider.php @@ -48,8 +48,8 @@ public function register() */ protected function registerFreshCommand() { - $this->app->singleton('command.migrate.fresh', static function () { - return new FreshCommand(); + $this->app->singleton('command.migrate.fresh', static function (Container $app) { + return new FreshCommand($app->make('migrator')); }); } diff --git a/composer.json b/composer.json index 04f8fac..9c3d290 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "orchestra/database", + "name": "andychukse/database", "description": "Database Component for Orchestra Platform", "keywords": ["orchestra-platform", "orchestral", "database"], "license": "MIT", @@ -22,10 +22,10 @@ }, "require": { "php": "^7.4 || ^8.0", - "illuminate/contracts": "^9.0", - "illuminate/database": "^9.0", - "illuminate/support": "^9.0", - "laravie/query-filter": "dev-master" + "illuminate/contracts": "^9.0 || ^10.0 || ^11.0 || ^12.0", + "illuminate/database": "^9.0 || ^10.0 || ^11.0 || ^12.0", + "illuminate/support": "^9.0 || ^10.0 || ^11.0 || ^12.0", + "andychukse/query-filter": "dev-master" }, "suggest": { "laravie/query-filter": "Allow to use whereLike query builder macros with Laravel (dev-master)."