stephenjude/tertiary-institutes

A database schema, models and controllers for list of nigerian tertiary institutions.

1.3 2019-10-09 14:06 UTC

This package is auto-updated.

Last update: 2024-12-11 02:49:33 UTC


README

Build Status GitHub license Total Downloads

A database schema, models and controllers for list of nigerian tertiary institutions.

Installation

You can install the package via composer:

composer require stephenjude/tertiary-institutes

publish the migration files

    php artisan vendor:publish --tag=migrations

Usage

Tertiary Institution routes

// returns list of all universities
route('all.university');  /* institution/degrees/all */

// returns list of all states and private universities
route('all.state.private'); /* institution/degrees/stateprivate */

// returns list of all polytechnics
route('all.polytechnic'); /* institution/polytechnics */

// returns list of all college of education
route('all.colleges'); /* institution/colleges */

// returns list of all innovative institutes
route('all.ieis'); /* institution/ieis */

Institution Courses routes

// returns list of all federal university courses
route('federal.university.courses', ['institution_id' => $id]); /* courses/{institution_id}/federal */ 

// returns list of all state university courses
route('state.university.courses', ['institution_id' => $id]);  /* courses/{institution_id}/state */ 

// returns list of all private university courses
route('private.university.courses', ['institution_id' => $id]);  /* courses/{institution_id}/private */ 

// returns list of all polytechnic courses
route('polytechnic.courses', ['institution_id' => $id]);  /* courses/{institution_id}/polytechnic */ 

// returns list of all college courses
route('college.courses', ['institution_id' => $id]);  /* courses/{institution_id}/college */ 

// returns list of all innovative institute courses
route('iei.courses', ['institution_id' => $id]);  /* courses/{institution_id}/iei */ 

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email stephen@ahooba.org.ng instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.