public function __construct() { $ip = Cache::get('caiji_ip', ''); if (empty($ip)) { $ip = Argument::find('caiji_ip')->value; Cache::put('caiji_ip', $ip, 5); } $this->ip = 'http://' . $ip; }
public function index() { echo Argument::find('caiji_ip')->value; }