title: FatalErrorException in HtmlServiceProvider.php line 36: laravel
body: <p>I am using laravel 5.2 and I am getting following error 
  FatalErrorException in HtmlServiceProvider.php line 36:
  Call to undefined method Illuminate\Foundation\Application::bindShared()</p>
  
  <p>my app.php file is</p>
  
  <pre><code>&lt;?php
  
  return [
  
  
      'env' =&gt; env('APP_ENV', 'production'),
  
  
      'debug' =&gt; env('APP_DEBUG', false),
  
  
      'url' =&gt; 'http://localhost',
  
  
      'timezone' =&gt; 'UTC',
  
  
      'locale' =&gt; 'en',
  
  
      'fallback_locale' =&gt; 'en',
  
  
      'key' =&gt; env('APP_KEY'),
  
      'cipher' =&gt; 'AES-256-CBC',
  
  
      'log' =&gt; env('APP_LOG', 'single'),
  
  
      'providers' =&gt; [
  
          /*
           * Laravel Framework Service Providers...
           */
          Illuminate\Auth\AuthServiceProvider::class,
          Illuminate\Broadcasting\BroadcastServiceProvider::class,
          Illuminate\Bus\BusServiceProvider::class,
          Illuminate\Cache\CacheServiceProvider::class,
          Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
          Illuminate\Cookie\CookieServiceProvider::class,
          Illuminate\Database\DatabaseServiceProvider::class,
          Illuminate\Encryption\EncryptionServiceProvider::class,
          Illuminate\Filesystem\FilesystemServiceProvider::class,
          Illuminate\Foundation\Providers\FoundationServiceProvider::class,
          Illuminate\Hashing\HashServiceProvider::class,
          Illuminate\Mail\MailServiceProvider::class,
          Illuminate\Pagination\PaginationServiceProvider::class,
          Illuminate\Pipeline\PipelineServiceProvider::class,
          Illuminate\Queue\QueueServiceProvider::class,
          Illuminate\Redis\RedisServiceProvider::class,
          Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
          Illuminate\Session\SessionServiceProvider::class,
          Illuminate\Translation\TranslationServiceProvider::class,
          Illuminate\Validation\ValidationServiceProvider::class,
          Illuminate\View\ViewServiceProvider::class,
          'Illuminate\Html\HtmlServiceProvider',
  
          /*
           * Application Service Providers...
           */
          App\Providers\AppServiceProvider::class,
          App\Providers\AuthServiceProvider::class,
          App\Providers\EventServiceProvider::class,
          App\Providers\RouteServiceProvider::class,
  
      ],
  
  
      'aliases' =&gt; [
  
          'App'       =&gt; Illuminate\Support\Facades\App::class,
          'Artisan'   =&gt; Illuminate\Support\Facades\Artisan::class,
          'Auth'      =&gt; Illuminate\Support\Facades\Auth::class,
          'Blade'     =&gt; Illuminate\Support\Facades\Blade::class,
          'Cache'     =&gt; Illuminate\Support\Facades\Cache::class,
          'Config'    =&gt; Illuminate\Support\Facades\Config::class,
          'Cookie'    =&gt; Illuminate\Support\Facades\Cookie::class,
          'Crypt'     =&gt; Illuminate\Support\Facades\Crypt::class,
          'DB'        =&gt; Illuminate\Support\Facades\DB::class,
          'Eloquent'  =&gt; Illuminate\Database\Eloquent\Model::class,
          'Event'     =&gt; Illuminate\Support\Facades\Event::class,
          'File'      =&gt; Illuminate\Support\Facades\File::class,
          'Gate'      =&gt; Illuminate\Support\Facades\Gate::class,
          'Hash'      =&gt; Illuminate\Support\Facades\Hash::class,
          'Lang'      =&gt; Illuminate\Support\Facades\Lang::class,
          'Log'       =&gt; Illuminate\Support\Facades\Log::class,
          'Mail'      =&gt; Illuminate\Support\Facades\Mail::class,
          'Password'  =&gt; Illuminate\Support\Facades\Password::class,
          'Queue'     =&gt; Illuminate\Support\Facades\Queue::class,
          'Redirect'  =&gt; Illuminate\Support\Facades\Redirect::class,
          'Redis'     =&gt; Illuminate\Support\Facades\Redis::class,
          'Request'   =&gt; Illuminate\Support\Facades\Request::class,
          'Response'  =&gt; Illuminate\Support\Facades\Response::class,
          'Route'     =&gt; Illuminate\Support\Facades\Route::class,
          'Schema'    =&gt; Illuminate\Support\Facades\Schema::class,
          'Session'   =&gt; Illuminate\Support\Facades\Session::class,
          'Storage'   =&gt; Illuminate\Support\Facades\Storage::class,
          'URL'       =&gt; Illuminate\Support\Facades\URL::class,
          'Validator' =&gt; Illuminate\Support\Facades\Validator::class,
          'View'      =&gt; Illuminate\Support\Facades\View::class,
          'Form'      =&gt; 'Illuminate\Html\FormFacade',
          'Html'      =&gt; 'Illuminate\Html\HtmlFacade',
  
      ],
  
  ];
  </code></pre>
  
  <p>And signup_form.blade.php file is</p>
  
  <pre><code>&lt;h1&gt;signupform&lt;/h1&gt;
  
  &lt;div  class="signup-form"&gt;
    {!! Form::open() !!}
  
    {!! Form::text('email','',array('class'=&gt;'email','id'=&gt;"email","placeholder"=&gt;'Email address'))!!}
  
      {!! Form::close() !!}
  
  &lt;/div&gt;
  </code></pre>
  
  <p>And my routes.php file</p>
  
  <pre><code>&lt;?php
  
  
  
  Route::get('/', function () {
      return view('welcome');
  });
  Route::get('home', function () {
      echo 'welome home';
  });
  
  Route::get('signup', 'Auth\HomeController@signupform');
  </code></pre>
  
  <p>whenever i open the form in browser it shows the above error.</p>