title: ArgumentCountError Too few arguments to function 0 passed and exactly 1 expected in Laravel
body: <p>I'm trying to update a record in my laravel application</p>
  
  <p>In my app management blade I have a link to a single record</p>
  
  <pre><code>&lt;a href="{{ route('activities.index',$app-&gt;appId) }}" class="btn btn-warning"&gt; Activate&lt;/a&gt;   
  </code></pre>
  
  <p>So once the user clicks on the link user will sent to a update record blade which is at</p>
  
  <pre><code>views/activities/index.blade.php
  </code></pre>
  
  <p>I have a controller called, ActivateController.php in my controllers where I have written my functions related to the update.</p>
  
  <p>Now in that controller I have an index function,</p>
  
  <pre><code>public function index($id)
      {
          //echo $id;
          $datas = Website::WHERE('appId','=',$id);
          return view('activities.index',compact('datas'));         
      }
  </code></pre>
  
  <p>In my Routes/web.php, I have declared my route as follows</p>
  
  <pre><code>Route::get('/activities.index/{id}', 'ActivateController@index')-&gt;name('activities.index');
  </code></pre>
  
  <p>Now I have faces two issues,</p>
  
  <p>1/ I want my url to be like TEST.SITE/activities/12 but currently it shows like TEST.SITE/activities?12</p>
  
  <p>2/  When I tried to access the acivities.index, it gives me an error saying </p>
  
  <pre><code>ArgumentCountError
  Too few arguments to function App\Http\Controllers\ActivateController::index(), 0 passed and exactly 1 expected
  </code></pre>
  
  <p>What I'm doing wrong here and How can I fix above Issues?</p>