Download the PHP package alecgarcia/laravel-uid without Composer
On this page you can find all versions of the php package alecgarcia/laravel-uid. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download alecgarcia/laravel-uid
More information about alecgarcia/laravel-uid
Files in alecgarcia/laravel-uid
Download alecgarcia/laravel-uid
More information about alecgarcia/laravel-uid
Files in alecgarcia/laravel-uid
Vendor alecgarcia
Package laravel-uid
Short Description Create UIDs like the ones Stripe generates. These can be used on your models or on their own.
License MIT
Homepage https://github.com/alecgarcia/laravel-uid
Package laravel-uid
Short Description Create UIDs like the ones Stripe generates. These can be used on your models or on their own.
License MIT
Homepage https://github.com/alecgarcia/laravel-uid
Please rate this library. Is it a good library?
Informations about the package laravel-uid
LaravelUid
This package creates UIDs like the ones Stripe uses for your models or on their own.
Installation
Via Composer
Usage
To use with a model
1. Add uid column to table
With an existing Model
-
Add a migration
- Open up the migration file you just created and add a
uid
field.- If you overrode the column name in either the config for the default or in your model, make sure you create the column in your table to match.
With a new Model
- Open up the migration file for the model and add a
uid
field- If you overrode the column name in either the config for the default or in your model, make sure you create the column in your table to match.
2. Add the trait to your model
To used statically
Customization
Using the trait
You can add the following properties to your model to configure the Uid trait.
- This will override the defaults as well as the config file.
Using the config file for defaults
-
Publish the config file.
- Customize the defaults in the
app/config/laravel-uid.php
file.
Change log
Please see the changelog for more information on what has changed recently.
Testing
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Alec Garcia
- All Contributors
- Originally influenced by dpods/laravel-uid
License
MIT. Please see the license file for more information.
All versions of laravel-uid with dependencies
PHP Build Version
Package Version
No informations.
The package alecgarcia/laravel-uid contains the following files
Loading the files please wait ....