<?php namespace Contentify\ServiceProviders;

use Collective\Html\HtmlServiceProvider as OriginalHtmlServiceProvider;
use Contentify\HtmlBuilder;
use Contentify\FormBuilder;

class HtmlServiceProvider extends OriginalHtmlServiceProvider {
    
    /**
     * Register the HTML builder instance.
     *
     * @return void
     */
    protected function registerHtmlBuilder()
    {
        $this->app->singleton('html', function($app)
        {
            return new HtmlBuilder($app['url'], $app['view']);
        });
    }
 
    /**
     * Register the form builder instance.
     *
     * @return void
     */
    protected function registerFormBuilder()
    {
        $this->app->singleton('form', function($app)
        {
            $form = new FormBuilder($app['html'], $app['url'], $app['view'], $app['session.store']->getToken());

            return $form->setSessionStore($app['session.store']);
        });
    }

}
<?php namespace Contentify\ServiceProviders;

use Collective\Html\HtmlServiceProvider as OriginalHtmlServiceProvider;
use Contentify\HtmlBuilder;
use Contentify\FormBuilder;

class HtmlServiceProvider extends OriginalHtmlServiceProvider {
    
    /**
     * Register the HTML builder instance.
     *
     * @return void
     */
    protected function registerHtmlBuilder()
    {
        $this->app->singleton('html', function($app)
        {
            return new HtmlBuilder($app['url'], $app['view']);
        });
    }
 
    /**
     * Register the form builder instance.
     *
     * @return void
     */
    protected function registerFormBuilder()
    {
        $this->app->singleton('form', function($app)
        {
            $form = new FormBuilder($app['html'], $app['url'], $app['view'], $app['session.store']->token());

            return $form->setSessionStore($app['session.store']);
        });
    }

}
Use token() instead of getToken() since it is "deprecated"
Use token() instead of getToken() since it is "deprecated"
