We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e41940 commit 5cfa033Copy full SHA for 5cfa033
composer.json
@@ -23,7 +23,10 @@
23
"autoload": {
24
"psr-4": {
25
"PulkitJalan\\GeoIP\\": "src"
26
- }
+ },
27
+ "files": [
28
+ "helpers.php"
29
+ ]
30
},
31
"extra": {
32
"branch-alias": {
helpers.php
@@ -0,0 +1,17 @@
1
+<?php
2
+
3
+if (! function_exists('geoip')) {
4
+ /**
5
+ * Get an instance of the current geoip.
6
+ *
7
+ * @return \PulkitJalan\GeoIP\GeoIP
8
+ */
9
+ function geoip($key = null)
10
+ {
11
+ if (is_null($key)) {
12
+ return app('geoip');
13
+ }
14
15
+ return $app('geoip')->get.ucwords(camel_case($key));
16
17
+}
0 commit comments