I want to redirect the website according to detect country from IP address and redirect it to according country. ex. http://www.test.com/in/contact, http://www.test.com/us/contact. How do I achieve that in laravel ?
Look at this post How to detect language preference in Laravel 5
you can get the language form the header with the code below and redirect accordingly
Request::server('HTTP_ACCEPT_LANGUAGE')
// OR
$request->server('HTTP_ACCEPT_LANGUAGE');