Download the PHP package alfa6661/laravel-autonumber without Composer
On this page you can find all versions of the php package alfa6661/laravel-autonumber. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alfa6661/laravel-autonumber
More information about alfa6661/laravel-autonumber
Files in alfa6661/laravel-autonumber
Package laravel-autonumber
Short Description Laravel package to create autonumber for Eloquent model
License MIT
Homepage https://github.com/alfa6661/laravel-autonumber
Informations about the package laravel-autonumber
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 Alfa6661\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 laravel-autonumber with dependencies
illuminate/database Version ^5.1|^6.0|^7.0|^8.0|^9.0
illuminate/support Version ^5.1|^6.0|^7.0|^8.0|^9.0