I've tried to find the full path of current route in Laravel 5.x
For this case i've created a method with the following code, but i can't imagine that Laravel does not provide something like this themselves:
$current = Route::getFacadeRoot()->current();
$uri = $current->uri();
foreach ($current->parameters() as $key => $param) {
$uri = str_replace('{' . $key . '}', $param, $uri);
}
return url($uri);
Is there something out of the box in Laravel that i just can't find?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1XcoN26
via IFTTT
Aucun commentaire:
Enregistrer un commentaire