title: Argument 1 passed to App\Http\Controllers\Controller::validate()
body: <p>why am i getting this error? </p>
  
  <p>Argument 1 passed to App\Http\Controllers\Controller::validate() must be an instance of Illuminate\Http\Request, instance of Illuminate\Support\Facades\Request given, called in C:\xampp\htdocs\spupresearchjournal\app\Http\Controllers\CurrentIssueController.php on line 55</p>
  
  <p>public function store(Request $request)
      {</p>
  
  <pre><code>    $this-&gt;validate($request, [
  
          'journalcover' =&gt; 'required|image|mimes:jpeg,png,jpg,gif,svg|max:2048',
          'title' =&gt; 'required',
          'editor' =&gt; 'required',
          'date' =&gt; 'required',
          'summary' =&gt; 'required',
      ]);
  
      // check if file was uploaded
      if ($request-&gt;hasFile('journalcover')) {
          // get the file object
          $image = $request-&gt;file('journalcover');
          $name = $image-&gt;getClientOriginalName();
          //$name['journalcover'] = 'images/' . $request-&gt;file('journalcover')-&gt;getClientOriginalName();
          //$size = $image-&gt;getClientSize();
          $destinationPath = ('images/');
          $image-&gt;move($destinationPath, $name);
          $journalcover = $destinationPath . $name;
  
          $newjournal = new CurrentIssue;
          $newjournal-&gt;journalcover = ('images/').$name;
          $newjournal-&gt;title = $request-&gt;input('title');
          $newjournal-&gt;editor = $request-&gt;input('editor');
          $newjournal-&gt;date = $request-&gt;input('date');
          $newjournal-&gt;summary = $request-&gt;input('summary');
          $newjournal-&gt;status = $request-&gt;input('status', '0');
          //$newjournal-&gt;size = $size;
          //dd($newjournal);
          $newjournal-&gt;save();
  
          return redirect('/currentissue')-&gt;with('success', 'New Journal Added');
      }
  }
  </code></pre>
  
  <p>Argument 1 passed to App\Http\Controllers\Controller::validate() must be an instance of Illuminate\Http\Request, instance of Illuminate\Support\Facades\Request given, called in C:\xampp\htdocs\spupresearchjournal\app\Http\Controllers\CurrentIssueController.php on line 55</p>