for me desicion is:
App::before(function($request)
{
$request_uri = $request->server->get('REQUEST_URI');
$request_uri_string = urldecode(substr($request_uri,1));
if(strlen($request_uri_string)>1){
if($alias = Alias::whereUrl($request_uri_string)->first()) {
$request->server->set('REQUEST_URI','/'.$alias->type.'/'.$alias->value);
}
}
});
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community