Generate running number when creating new records in your table.
You can install the package via composer:
composer require cleaniquecoders/laravel-running-numberYou can publish and run the migrations with:
php artisan vendor:publish --tag="running-number-migrations"
php artisan migrateYou 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 testPlease 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.