wallet handling 4
This commit is contained in:
@@ -2,8 +2,9 @@
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Console\Commands\MigrateCommand;
|
||||
use App\Console\MigrateCommand;
|
||||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
use Illuminate\Database\Migrations\MigrationRepositoryInterface;
|
||||
use Illuminate\Database\MigrationServiceProvider;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
@@ -20,6 +21,10 @@ class AppServiceProvider extends ServiceProvider
|
||||
// باید migration.repository و migrator ثبت شوند (حتی در package:discover).
|
||||
$this->app->register(MigrationServiceProvider::class);
|
||||
|
||||
$this->app->bind(MigrationRepositoryInterface::class, function ($app) {
|
||||
return $app->make('migration.repository');
|
||||
});
|
||||
|
||||
$this->app->singleton('command.migrate', function ($app) {
|
||||
return new MigrateCommand(
|
||||
$app->make('migrator'),
|
||||
|
||||
Reference in New Issue
Block a user