Conditions | 3 |
Paths | 3 |
Total Lines | 24 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function boot() |
||
16 | { |
||
17 | |||
18 | //$this->loadRoutesFrom(__DIR__.'/routes.php'); |
||
19 | |||
20 | Route::macro('multistep', function ($uri, $controller) { |
||
21 | return new PendingMultiStepRegister($uri, $controller); |
||
22 | }); |
||
23 | |||
24 | if ($this->app->runningInConsole()) { |
||
25 | $this->publishes([ |
||
26 | __DIR__.'/../config/steps.php' => config_path('steps.php'), |
||
27 | ], 'config'); |
||
28 | |||
29 | if (! class_exists('CreateMultiStepsTable')) { |
||
30 | $this->publishes([ |
||
31 | __DIR__.'/../database/migrations/create_multisteps_table.php.stub' => database_path('migrations/'.date('Y_m_d_His', time()).'_create_multisteps_table.php'), |
||
32 | ], 'migrations'); |
||
33 | } |
||
34 | |||
35 | // Registering package commands. |
||
36 | // $this->commands([]); |
||
37 | } |
||
38 | } |
||
39 | |||
54 |