cleaniquecoders / laravel-running-number
Generate running number when creating new records in your table.
Fund package maintenance!
cleaniquecoders
Installs: 11 382
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 2
Open Issues: 0
Requires
- php: ^8.1 | ^8.2 | ^8.3
- illuminate/contracts: ^9.0 | ^10.0 | ^11.0
- spatie/laravel-enum: ^3.0
- spatie/laravel-package-tools: ^1.14
Requires (Dev)
- larastan/larastan: ^2.9
- laravel/pint: ^1.6
- nunomaduro/collision: ^7.0
- orchestra/testbench: ^8.0 | ^9.0
- pestphp/pest: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5|^10.0
- spatie/laravel-ray: ^1.26
README
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.