title: BadMethodCallException in Controller.php line 82: Method [all] does not exist in laravel
body: <p>Model code is below listed</p>
  
  <pre><code>?php
  
  namespace App;
  
  use Illuminate\Database\Eloquent\Model;
  
  class monthlyActivity extends Model
  {
      protected $table = 'monthly_activities';
  }
  </code></pre>
  
  <p>and controller is 
  namespace App\Http\Controllers;</p>
  
  <pre><code>use Illuminate\Http\Request;
  
  class monthlyActivity extends Controller
  {
      //
  
      public function show()
      {
          $monthly = monthlyActivity::all();
          return view('show',['monthly' =&gt; $monthly]);
      }
  }
  </code></pre>
  
  <p>show.blade file is below</p>
  
  <pre><code>&lt;tbody&gt;
                  &lt;?php
                  foreach($monthly as $mon)
                  {
                          ?&gt;
                          &lt;tr&gt;
                              &lt;td&gt;
                              &lt;?php echo $mon-&gt;id ?&gt;
                              &lt;/td&gt;
                              &lt;td&gt;
                              &lt;?php echo $mon-&gt;year ?&gt;
                              &lt;/td&gt;&lt;td&gt;
                              &lt;?php echo $mon-&gt;id ?&gt;
                              &lt;/td&gt;
                              &lt;td&gt;
                              &lt;?php echo $mon-&gt;id ?&gt;
                              &lt;/td&gt;&lt;td&gt;
                              &lt;?php echo $mon-&gt;id ?&gt;
                              &lt;/td&gt;&lt;td&gt;
                              &lt;?php echo $mon-&gt;id ?&gt;
                              &lt;/td&gt;&lt;td&gt;
                              &lt;?php echo $mon-&gt;id ?&gt;
                              &lt;/td&gt;
                          &lt;/tr&gt;
  
                          &lt;?php
  
                  }
                  ?&gt;
  </code></pre>
  
  <p>in route file below is the mention route for this particular page</p>
  
  <blockquote>
    <p>Route::get('show', 'monthlyActivity@show');</p>
  </blockquote>
  
  <p>and am getting the error in <strong>all</strong> which is declare in controller, i don't know how can i solve this error </p>