changed fullurl function

laravel 4.1 changed function