summerblue / laravel5-cheatsheet

A quick reference guide (cheat sheet) for Laravel 5.1 LTS, listing artisan, composer, routes and other useful bits of information.
https://cs.laravel-china.org/
784 stars 167 forks source link

Add shorter method for get the ip of the Request #6

Closed diemax closed 8 years ago

diemax commented 8 years ago

Hello! Great project! I would like contribute with this method:

Request::ip();

It's a wrapper of the Symfony method:

Request::getClientIp();

You can find it on the Laravel docs: https://laravel.com/api/5.2/Illuminate/Http/Request.html#method_ip

Thanks!

summerblue commented 8 years ago

thanks :rose:

diemax commented 8 years ago

Awesome! You are welcome!