Download the PHP package virusphp/autonumbering without Composer
On this page you can find all versions of the php package virusphp/autonumbering. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download virusphp/autonumbering
More information about virusphp/autonumbering
Files in virusphp/autonumbering
Package autonumbering
Short Description Laravel package to create autonumber for Eloquent model
License MIT
Homepage https://github.com/virusphp/autonumbering
Informations about the package autonumbering
Laravel AutoNumber
Laravel package to create autonumber for Eloquent model
Installation
You can install the package via composer:
Register the ServiceProvider in config/app.php
Publish the default configuration
Running migration
Usage
Your Eloquent models should use the Virusphp\AutoNumber\AutoNumberTrait
trait
The trait contains an abstract method getAutoNumberOptions()
that you must implement yourself.
You can also pass a closure
for the format value.
Saving Model
The order_number will be automatically generated based on the format given when saving the Order model.
License
Laravel-autonumber is open-sourced software licensed under the MIT license.
Contributing
Please report any issue you find in the issues page. Pull requests are more than welcome.
All versions of autonumbering with dependencies
illuminate/database Version ^8.0|^9.0|^10.0
illuminate/support Version ^8.0|^9.0|^10.0