cleaniquecoders/laravel-running-number

Generate running number when creating new records in your table.

2.2.0 2024-03-21 03:44 UTC

This package is auto-updated.

Last update: 2024-11-08 10:33:39 UTC


README

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.