diff --git a/src/iphandler/DefaultIPHandler.php b/src/iphandler/DefaultIPHandler.php new file mode 100644 index 0000000..8df6f3a --- /dev/null +++ b/src/iphandler/DefaultIPHandler.php @@ -0,0 +1,20 @@ +ip(); + } +} diff --git a/src/iphandler/IPHandlerInterface.php b/src/iphandler/IPHandlerInterface.php index d6d3d5a..fe7fbf0 100644 --- a/src/iphandler/IPHandlerInterface.php +++ b/src/iphandler/IPHandlerInterface.php @@ -7,10 +7,11 @@ */ interface IPHandlerInterface { - - /** - * Get IP address. - * @return string IP address. - */ - public function getIP(); + + /** + * Get IP address. + * @param \Illuminate\Http\Request $request + * @return string IP address. + */ + public function getIP($request); }