URL encoded% 7B% 7B $ -% 7D% 7D /% 7B% 7B $ -% 7D% 7D

1

I have a route that sends all data well to the controller, but when the data arrives at the URL the data becomes symbols. I understand that %7B%7B$ dato %7D%7D is the same as {{$dato}}

Does anyone know how to avoid this?

    public function code($status, $user){

    return $this -> get('userstatus/{{$status}}/{{$user}}');

}

Result:

http://MyRuta/userstatus/%7B%7B$status%7D%7D/%7B%7B$user%7D%7D

It should be:

http://MyRuta/userstatus/24/125

When I do the following it works, but only with one variable, if I try with both it does not work:

public function code($status, $user){

return $this -> get('userstatus/.$status');

}

result:

http://MyRuta/userstatus/24
    
asked by Cesar Augusto 21.07.2017 в 02:29
source

1 answer

1

It seems like you're trying to use blade syntax, but you're in a controller.

It should work if you do:

return $this->get('userstatus/' . $status . '/' . $user);

Or also with double quotes:

return $this->get("userstatus/{$status}/{$user}");
    
answered by 21.07.2017 / 02:37
source