Measurement Units

Codacy Badge StyleCI License Total Downloads Latest Stable Version

Measurement units dependency for Laravel Enso

This package works exclusively within the Enso ecosystem.

The front end assets that utilize this api are present in the measurement-units package.

For live examples and demos, you may visit laravel-enso.com

Installation

  • install using composer composer require laravel-enso/measurement-units
  • run the migrations php artisan migrate

If you want to also insert the default measurement unit, publish both the factory and the seeder:

php artisan vendor:publish --tag=measurement-units-factories
php artisan vendor:publish --tag=measurement-units-seeders

You may then run the seeder:

php artisan db:seed --class=MeasurementUnitsSeeder

Features

  • features a core measurement units functionality with a model, enums, migrations, routes, controllers, resources, index table, etc
  • provides CRUD functionality for the MeasurementUnit model
  • a MeasurementUnitFactory is included and can be published
  • a MeasurementUnitSeeder is included and can be published

Usage

The package is meant to be installed on an Enso project and customized as required (or used as it is if that is enough).

Publishes

  • php artisan vendor:publish --tag=measurement-units-factories - the included factory,
  • php artisan vendor:publish --tag=measurement-units-seeders - the included seeder,

Contributions

are welcome. Pull requests are great, but issues are good too.

License

This package is released under the MIT license.