Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function boot() |
||
16 | { |
||
17 | $this->app->booted(function () { |
||
18 | $loader = AliasLoader::getInstance(); |
||
19 | $loader->alias('Counters', Counters::class); |
||
20 | }); |
||
21 | |||
22 | $this->publishes([ |
||
23 | __DIR__.'/../database/migrations/0000_00_00_000000_create_counters_tables.php' => $this->app->databasePath().'/migrations/0000_00_00_000000_create_counters_tables.php', |
||
24 | ], 'migrations'); |
||
25 | |||
26 | if ($this->app->runningInConsole()) { |
||
27 | $this->commands([\Turahe\Counters\Commands\MakeCounter::class]); |
||
28 | } |
||
31 |