> For the complete documentation index, see [llms.txt](https://sprnva.gitbook.io/sprnva-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sprnva.gitbook.io/sprnva-docs/routing/with-parameter.md).

# with  parameter

There's an instance that we need to pass a parameter to our routes. Just remember that inside the braces `{your-desired-name}` you can define your desired name for your id's or parameters.This is how we do it in sprnva.

```php
Route::get("/profile/detail/{id}", ['ProfileController@detail', ['auth']]);
```

Then the controller's method accepts a parameter.

```php
<?php

namespace App\Controllers;

class UsersController
{
    public function detail($id){
        //code here
    }
}
```
