title: Laravel 5.4 : ReflectionException in Container.php line 749: Class App\Http\Controllers\Admin\ImageGalleryController does not exist
body: <p>I'm fed up with this error, used a admin and user login project and got this error.</p>
  
  <p>Laravel 5.4 : ReflectionException in Container.php line 749: Class App\Http\Controllers\Admin\ImageGalleryController does not exist</p>
  
  <p>please look into my files.</p>
  
  <p><strong><em>This is the Screenshot of the error:</em></strong>
  <a href="https://i.stack.imgur.com/CVJ9g.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CVJ9g.png" alt="enter image description here"></a></p>
  
  <p><strong><em>Routes for Gallery Upload:</em></strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>Route::get('gallery-upload', 'ImageGalleryController@index');
  Route::post('/gallery-upload', 'ImageGalleryController@upload');
     
  Route::delete('/gallery-upload/{id}', 'ImageGalleryController@destroy');</code></pre>
  </div>
  </div>
  </p>
  
  <p><strong><em>Controller File:</em></strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  
  use App\ImageGallery;
  
  
  
  
  
  class ImageGalleryController extends Controller
  {
      /**
       * Listing Of images gallery
       *
       * @return \Illuminate\Http\Response
       */
  
    
  
  
      public function index()
      {
       $images = ImageGallery::get();
       return view('gallery-upload',compact('images'));
      }
  
       public function img()
      {
          $images = ImageGallery::get();
          return view('gallery',compact('images'));
      }
      // /**
      //  * Upload image function
      //  *
      //  * @return \Illuminate\Http\Response
       
      public function upload(Request $request)
      {
       $this-&gt;validate($request, [
        'title' =&gt; 'required',
              'image' =&gt; 'required|image|mimes:jpeg,png,jpg,gif,svg|max:2048',
          ]);
  
          $input['image'] = time().'.'.$request-&gt;image-&gt;getClientOriginalExtension();
          $request-&gt;image-&gt;move(public_path('images'), $input['image']);
  
          $input['title'] = $request-&gt;title;
          ImageGallery::create($input);
  
       return back()
        -&gt;with('success','Image Uploaded successfully.');
      }
  
      /**
       * Remove Image function
       *
       * @return \Illuminate\Http\Response
       */
      public function destroy($id)
      {
       ImageGallery::find($id)-&gt;delete();
       return back()
        -&gt;with('success','Image removed successfully.'); 
      } 
  }</code></pre>
  </div>
  </div>
  </p>