Generate running number when creating new records in your table.
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.
running_number()->type($type)->generate();
// OR
use CleaniqueCoders\RunningNumber\Generator as RunningNumberGenerator;
RunningNumberGenerator::make()->type($type)->generate();
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.