src/Forms/FormServiceProvider.php
public function register()
    {
        $this->registerFractalManager();

        /** @var \Illuminate\View\Factory $view */
        $view = $this->app['view'];
        $view->addLocation(__DIR__.'/views');

        $this->app->singleton('form', function ($app) {
            return new FormFactory(
                $app['validator'],
                $app['view'],
                $app['league.fractal'],
                new Factory()
            );
        });
    }
public function register()
    {
        $this->registerFractalManager();

        /** @var \Illuminate\View\Factory $view */
        $view = $this->app['view'];
        $view->addLocation(__DIR__.'/views');

        $this->app->singleton('form', function ($app) {
            return new FormFactory(
                $app['validator'],
                $app['view'],
                $app['league.fractal'],
                new Factory()
            );
        });
    }
public function register ( ) { $ this -> registerFractalManager ( ) ; /** @var \Illuminate\View\Factory $view */ $ view = $ this -> app [ 'view' ] ; $ view -> addLocation ( __DIR__ . '/views' ) ; $ this -> app -> singleton ( 'form' , function ( $ app ) { return new FormFactory ( $ app [ 'validator' ] , $ app [ 'view' ] , $ app [ 'league.fractal' ] , new Factory ( ) ) ; } ) ; }
Register our form service.
Register our form service .