Closed arcanedev-maroc closed 7 years ago
ping @Torann
provides()
str_*
<?php namespace App\Http\Controllers; use Torann\GeoIP\Contracts\GeoIPInterface; class RandomController extends Controller { /** * GeoIp instance. * * @var \Torann\GeoIP\Contracts\GeoIPInterface */ protected $geoip; /** * Constructor * * @param \Torann\GeoIP\Contracts\GeoIPInterface $geoip */ public function __construct(GeoIPInterface $geoip) { $this->geoip = $geoip; } /** * Search ip and do other stuff. * * @param string $ip * * @return mixed */ public function search($ip) { $location = $this->geoip->getLocation($ip); // other stuff } }
ping @Torann
DONE:
provides()
method.str_*
helper.Suggestions:
Usage: