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