title: Laravel 5.4 Class 'form' not found
body: <p>I'm facing problem <strong>'Class 'form' not found'</strong>  I'm currently using laravel 5.4. I already have tried maximum efforts to solve.</p>
  
  <p>Thanks</p>
  
  <blockquote>
    <p>Error is : Whoops, looks like something went wrong.</p>
  </blockquote>
  
  <p>1/1</p>
  
  <blockquote>
    <p>FatalErrorException in d0b19e04e5a1f8a5507d8ca427362b23807103ca.php line 23:
    Class 'Form' not found
    in d0b19e04e5a1f8a5507d8ca427362b23807103ca.php line 23</p>
  </blockquote>
  
  <p>Here is my Comp</p>
  
  <pre><code>{
      "require": {
         "php": "&gt;=5.6.4",
         "laravel/framework": "5.4.*",
         "laravel/tinker": "~1.0",
         "laravelcollective/html": "^5.4"
      }, 
  }
  </code></pre>
  
  <p>I run the composer update command.</p>
  
  <p>Here is my app.php </p>
  
  <pre><code>'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\Notifications\NotificationServiceProvider::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\Validation\ValidationServiceProvider::class,
      Illuminate\View\ViewServiceProvider::class,
      'Collective\Html\HtmlServiceProvider',
  
  
      /*
       * Package Service Providers...
       */
      Laravel\Tinker\TinkerServiceProvider::class,
  
      /*
       * Application Service Providers...
       */
      App\Providers\AppServiceProvider::class,
      App\Providers\AuthServiceProvider::class,
      // App\Providers\BroadcastServiceProvider::class,
      App\Providers\EventServiceProvider::class,
      App\Providers\RouteServiceProvider::class,
  
  ],
  
  /*
  |--------------------------------------------------------------------------
  | Class Aliases
  |--------------------------------------------------------------------------
  |
  | This array of class aliases will be registered when this application
  | is started. However, feel free to register as many as you wish as
  | the aliases are "lazy" loaded so they don't hinder performance.
  |
  */
  
  '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,
      'Broadcast' =&gt; Illuminate\Support\Facades\Broadcast::class,
      'Bus' =&gt; Illuminate\Support\Facades\Bus::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,
      'Notification' =&gt; Illuminate\Support\Facades\Notification::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; 'Collective\Html\FormFacade',
      'HTML' =&gt; 'Collective\Html\HtmlFacade',
  ],
  
  ];
  </code></pre>
  
  <p>using form in formupload.blade.php</p>
  
  <p></p>
  
  <pre><code>@if(isset($success))
      &lt;div class="alert alert-success"&gt; {{$success}} &lt;/div&gt;
  @endif
      {!! Form::open(['action'=&gt;'ImageController@store', 'files'=&gt;true]) !!}
  
      &lt;div class="form-group"&gt;
          {!! Form::label('title', 'Title:') !!}
          {!! Form::text('title', null, ['class'=&gt;'form-control']) !!}
      &lt;/div&gt;
  
      &lt;div class="form-group"&gt;
          {!! Form::label('description', 'Description:') !!}
          {!! Form::textarea('description', null, ['class'=&gt;'form-control', 'rows'=&gt;5] ) !!}
      &lt;/div&gt;
  
      &lt;div class="form-group"&gt;
          {!! Form::label('image', 'Choose an image') !!}
          {!! Form::file('image') !!}
      &lt;/div&gt;
  
      &lt;div class="form-group"&gt;
          {!! Form::submit('Save', array( 'class'=&gt;'btn btn-danger form-control' )) !!}
      &lt;/div&gt;
  
      {!! Form::close() !!}
      &lt;div class="alert-warning"&gt;
          @foreach( $errors-&gt;all() as $error )
             &lt;br&gt; {{ $error }}
          @endforeach
      &lt;/div&gt;
  
  &lt;/div&gt;
  </code></pre>