DEV Community

Cover image for How to Get Location from IP in Laravel
Hamidreza Hassani
Hamidreza Hassani

Posted on

2 2

How to Get Location from IP in Laravel

Hi Guys
some weeks age i had been working on my Project and i had to get location from client's ip . so I searched in github and Packagist for a package that can get location from IP but there is no one . so I decided to develop a package with name laravel-ip.
this Package can get location by 3 Drivers:

and also You can Block some clients by ip,country and whatever you want and you can choose what ips can access to your site (I added this Feature for Pepole who deploy their Project on host and don't wanna someone see their website).

as I am lazy 😅😅 and i become tired to write all my README.md here Please see my github repository .

This is my first Package and i will be happy if you downlaod it and tell me it's Bugs if you found one

https://github.com/hamidreza2005/laravel-ip

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay