Download the PHP package chistel/laravel-uniqueid without Composer
On this page you can find all versions of the php package chistel/laravel-uniqueid. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download chistel/laravel-uniqueid
More information about chistel/laravel-uniqueid
Files in chistel/laravel-uniqueid
Download chistel/laravel-uniqueid
More information about chistel/laravel-uniqueid
Files in chistel/laravel-uniqueid
Vendor chistel
Package laravel-uniqueid
Short Description Generate uniqueid when saving Eloquent models to be used as auth key and route key
License MIT
Homepage https://github.com/chistel/laravel-uniqueid
Package laravel-uniqueid
Short Description Generate uniqueid when saving Eloquent models to be used as auth key and route key
License MIT
Homepage https://github.com/chistel/laravel-uniqueid
Please rate this library. Is it a good library?
Informations about the package laravel-uniqueid
laravel-uniqueid is simliar to Spatie Sluggable as it was mimicked from it.
but the difference is that it's meant to use unique string for model routes.
Installation
You can install the package via composer:
Usage
Your Eloquent models should use the Chistel\LaravelUniqueId\HasUniqueId
trait and the Chistel\LaravelUniqueId\UniqueIdOptions
class.
The trait contains an abstract method getUniqueIdOptions()
that you must implement yourself.
Here's an example of how to implement the trait:
the uniqueid is only available on model creating.
All versions of laravel-uniqueid with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1.3
illuminate/database Version ~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0
illuminate/support Version ~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0
illuminate/database Version ~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0
illuminate/support Version ~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0
The package chistel/laravel-uniqueid contains the following files
Loading the files please wait ....