| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function register() |
||
| 28 | { |
||
| 29 | // Automatically apply the package configuration |
||
| 30 | $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'laravel-form-template'); |
||
| 31 | |||
| 32 | // Register the main class to use with the model |
||
| 33 | $this->app->singleton('laravel-form-template', function () { |
||
| 34 | return new Template; |
||
| 35 | }); |
||
| 36 | |||
| 37 | // register their aliases |
||
| 38 | $loader = \Illuminate\Foundation\AliasLoader::getInstance(); |
||
| 39 | $loader->alias('Template', \SoufieneSlimi\LaravelFormTemplate\Models\Template::class); |
||
| 40 | } |
||
| 41 | } |
||
| 42 |