Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel get ip in controller

$mytime = CarbonCarbon::now()->format('H:i d-m-Y ');
$ip = request()->ip();

 {{ucwords($mytime)}}  {{ucwords(request()->ip())}}
<div style="float:left;">{{ucwords(request()->ip())}}</div>
 
PREVIOUS NEXT
Tagged: #laravel #ip #controller
ADD COMMENT
Topic
Name
3+5 =