Sri lankan Divisional Secretariats
Documentation

Documentation

Installation via composer

composer require dinushchathurya/srilankan-divisional-secretariats

Usage


use Dinushchathurya\Secretariat\Secretariat; //Use this on your controller

public function exampleFunction(){

    return Secretariat::getProvinces(); // Returns all provinces
    return Secretariat::getDistricts('Province'); // Returns districts of province
    return Secretariat::getAuthorities('District'); // Returns district secretariats of a district
}

    

Source code for working demo