| 1 | <?php |
||
| 8 | class FormsServiceProvider extends ServiceProvider { |
||
| 9 | |||
| 10 | public function register() { |
||
| 11 | $this->app->singleton('formsFactory', function($app) { |
||
| 12 | return new FormsFactory($app); |
||
| 13 | }); |
||
| 14 | |||
| 15 | $this->registerAliases(); |
||
| 16 | } |
||
| 17 | |||
| 18 | public function boot() |
||
| 19 | { |
||
| 20 | //$this->publishes([__DIR__ . '/../config/menu.php' => base_path('config/menu.php')], 'config'); |
||
| 21 | $this->loadViewsFrom(__DIR__ . '/../views', 'forms'); |
||
| 22 | } |
||
| 23 | |||
| 24 | |||
| 25 | private function registerAliases() { |
||
| 29 | |||
| 30 | } |