| Conditions | 3 |
| Paths | 3 |
| Total Lines | 29 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function boot() |
||
| 15 | { |
||
| 16 | if ($this->app->runningInConsole()) { |
||
| 17 | $this->publishes([ |
||
| 18 | __DIR__.'/../config/historiable.php' => config_path('historiable.php'), |
||
| 19 | ], 'config'); |
||
| 20 | |||
| 21 | $this->commands([ |
||
| 22 | InstallPackage::class, |
||
| 23 | ]); |
||
| 24 | |||
| 25 | if (! class_exists('CreateHistoriesTable')) { |
||
| 26 | $this->publishes([ |
||
| 27 | __DIR__.'/../src/migrations/create_histories_table.php.stub.php' => database_path('migrations/'.date('Y_m_d_His', time()).'_create_histories_table.php'), |
||
| 28 | ], 'migrations'); |
||
| 29 | } |
||
| 30 | |||
| 31 | /*if (!class_exists("History")) { |
||
| 32 | // Publishing the models. |
||
| 33 | $this->publishes([ |
||
| 34 | __DIR__ . '/../src/Models/History.php' => app_path('Models/History.php'), |
||
| 35 | ], 'models'); |
||
| 36 | }*/ |
||
| 37 | } |
||
| 38 | |||
| 39 | $this->loadRoutesFrom(__DIR__.'../../routes/web.php'); |
||
| 40 | $this->loadViewsFrom(__DIR__.'/../resources/views', 'historiable'); |
||
| 41 | Paginator::useTailwind(); |
||
| 42 | } |
||
| 43 | |||
| 58 |