Last active
January 5, 2021 12:01
-
-
Save sepisoltani/e99c3b9e66f80bd2bf3e2016e348927f to your computer and use it in GitHub Desktop.
Laravel Iran package
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
#Province methods | |
\Sepisoltani\Iran\Facades\Iran::get_provinces() # returns collection of all provinces | |
\Sepisoltani\Iran\Facades\Iran::get_approved_provinces() # returns collection of approved provinces | |
\Sepisoltani\Iran\Facades\Iran::find_province($id) # returns province found with the $id | |
#Country methods | |
\Sepisoltani\Iran\Facades\Iran::get_countries() # returns collection of all countries | |
\Sepisoltani\Iran\Facades\Iran::get_approved_countries() # returns collection of approved countries | |
\Sepisoltani\Iran\Facades\Iran::find_country($id) # returns country found with the $id | |
#City methods | |
\Sepisoltani\Iran\Facades\Iran::get_cities() # returns collection of all cities | |
\Sepisoltani\Iran\Facades\Iran::get_approved_cities() # returns collection of approved cities | |
\Sepisoltani\Iran\Facades\Iran::find_city($id) # returns city found with the $id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment