Skip to content
This repository was archived by the owner on Feb 18, 2024. It is now read-only.

Commit f8e5e50

Browse files
author
atehnix
committed
Override MigrationServiceProvider
1 parent 374b31b commit f8e5e50

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

src/Providers/ConsoleSupportServiceProvider.php

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
namespace ATehnix\LaravelStubs\Providers;
1212

13-
use Illuminate\Database\MigrationServiceProvider;
1413
use Illuminate\Foundation\Providers\ComposerServiceProvider;
1514
use Illuminate\Foundation\Providers\ConsoleSupportServiceProvider as BaseServiceProvider;
1615

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
/**
3+
* This file is part of laravel-stubs package.
4+
*
5+
* @author ATehnix <[email protected]>
6+
*
7+
* For the full copyright and license information, please view the LICENSE
8+
* file that was distributed with this source code.
9+
*/
10+
11+
namespace ATehnix\LaravelStubs\Providers;
12+
13+
use ATehnix\LaravelStubs\Database\MigrationCreator;
14+
use Illuminate\Database\MigrationServiceProvider as BaseServiceProvider;
15+
16+
class MigrationServiceProvider extends BaseServiceProvider
17+
{
18+
/**
19+
* Register the migration creator.
20+
*
21+
* @return void
22+
*/
23+
protected function registerCreator()
24+
{
25+
$this->app->singleton('migration.creator', function ($app) {
26+
return new MigrationCreator($app['files']);
27+
});
28+
}
29+
}

0 commit comments

Comments
 (0)