I am developing a Laravel 5 application, I have this route
Route::get('/go','UrlController@index');
and in this UrlController.php, I have this index method
public function index(){
return Redirect::to('www.google.com',302);
}
when I check this URL http://localhost:8000/go
it just changes to http://localhost:8000/www.google.comand has this error NotFoundHttpException in RouteCollection.php line 161
so the problem is, thanks
source
share