| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function register() |
||
| 33 | { |
||
| 34 | // Merge config |
||
| 35 | $this->mergeConfigFrom(realpath(__DIR__.'/../../config/config.php'), 'rinvex.contacts'); |
||
| 36 | |||
| 37 | // Bind eloquent models to IoC container |
||
| 38 | $this->app->singleton('rinvex.contacts.contact', $contactModel = $this->app['config']['rinvex.contacts.models.contact']); |
||
| 39 | $contactModel === Contact::class || $this->app->alias('rinvex.contacts.contact', Contact::class); |
||
| 40 | |||
| 41 | // Register console commands |
||
| 42 | $this->registerCommands($this->commands); |
||
| 43 | } |
||
| 44 | |||
| 56 |