How to get IP laravel 5.1 and print?
Ad
I am working on Laravel 5.1 and do not know how to get the IP and print it. I know that in PHP using $_SERVER[“REMOTE_ADDR”]
.
I have tried this {!!Request::ip()!!}
but nothing. Please help me
Ad
Answer
Ad
That's fine, ::1 is localhost on IPv6, Try 127.0.0.1:8000 to fix your issue if you want IPv4
Ad
source: stackoverflow.com
Related Questions
Ad
- → "failed to open stream" error when executing "migrate:make"
- → October CMS Plugin Routes.php not registering
- → OctoberCMS Migrate Table
- → OctoberCMS Rain User plugin not working or redirecting
- → October CMS Custom Mail Layout
- → October CMS - How to correctly route
- → October CMS create a multi select Form field
- → October CMS - Conditionally Load a Different Page
- → How to disable assets combining on development in OctoberCMS
- → October CMS - Radio Button Ajax Click Twice in a Row Causes Content to disappear
- → OctoberCms component: How to display all ID(items) instead of sorting only one ID?
- → In OctoberCMS how do you find the hint path?
- → How to register middlewares in OctoberCMS plugin?
Ad