title: Laravel : BadMethodCallException Method [show] does not exist
body: <blockquote>
    <p>(1/1) BadMethodCallException</p>
    
    <p>Method [show] does not exist. in Controller.php (line 82)</p>
  </blockquote>
  
  <p>I am new to Laravel and PHP and have been stuck on this error for a very long time with other questions not providing a solution. I was following an example (where the example worked) and made very little changes beside name changes.</p>
  
  <p>Here is the code:</p>
  
  <p><strong>web.php file</strong></p>
  
  <pre><code>Route::get('/', 'PagesController@home');
  Route::get('faq', 'PagesController@faq');
  Route::resource('support', 'UserInfoController');
  </code></pre>
  
  <p><strong>UserInfoController.php</strong></p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  use App\UserInfo;
  
  class UserInfoController extends Controller
  {
      //
      public function create(){
          $userInfo = new UserInfo;
          return view('contact', ['userInfo' =&gt; $userInfo]);
      }
  
      public function store(Request $request){
          $this-&gt;validate($request, [
              'name' =&gt; 'required',
              'email' =&gt; 'required',
              'subject' =&gt; 'required',
              'description' =&gt; 'required',
          ]);
  
          UserInfo::create($request-&gt;all());
          return redirect()-&gt;route('contact')-&gt;with('success','Enquiry has been
           submitted successfully');
      }
  }
  </code></pre>
  
  <p><strong>UserInfo.php</strong></p>
  
  <p>
  
  <pre><code>namespace App;
  
      use Illuminate\Database\Eloquent\Model;
  
      class UserInfo extends Model {
          protected $fillable = [
            'name','email','subject','description',
          ];
      }
  </code></pre>
  
  <p><code>The Route::resource</code> is the one giving me the problem as I am trying to access the page <code>support/contact</code>.  Would be very grateful if someone knew how to solve this.</p>