Hello I'm trying to store values inside session in laravel..
I want to store a value to get the last value that was set.

i Have this route

web.php 

```
Route::prefix('v1')->group(function () {
    Route::get('/{lol}', 'MyController@test');
});

```

Mycontroller

```
public function test($lol){

    if($lol == "lol" ){
        session(['lol' => $lol]);
    }

    dd(session()->get('lol'));

}

```

<http://localhost/laravel/v1/lol> = > return value! OK!

<http://localhost/laravel/v1/123> => return null!, why??? 

I want to return lol, because i need the last value stored in session.

I supose that $\_SESSION in php works well for that purpose.

but in Laravel i cant use this.