Skip to content

cleaniquecoders/laravel-running-number

Repository files navigation

Generate running number when creating new records in your table.

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Generate running number when creating new records in your table.

Installation

You can install the package via composer:

composer require cleaniquecoders/laravel-running-number

You can publish and run the migrations with:

php artisan vendor:publish --tag="running-number-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --tag="running-number-config"

Please make sure to configure the config/running-number types, in order to support your requirement.

Usage

running_number()->type($type)->generate();

// OR

use CleaniqueCoders\RunningNumber\Generator as RunningNumberGenerator;

RunningNumberGenerator::make()->type($type)->generate();

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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