Download the PHP package tsubasarcs/laravel-recommendation without Composer
On this page you can find all versions of the php package tsubasarcs/laravel-recommendation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tsubasarcs/laravel-recommendation
More information about tsubasarcs/laravel-recommendation
Files in tsubasarcs/laravel-recommendation
Package laravel-recommendation
Short Description cp member get member database package
License MIT
Homepage https://github.com/tsubasarcs/laravel-recommendation
Informations about the package laravel-recommendation
Laravel Recommendation
This package provides to generate user unique code with Laravel.
Installation
Currently this package only for laravel 5.5.
Install via composer
Publish Migration and Config
Run the following to publish the migrations on your terminal:
If you want to change some parameters, you can run the following to publish the config on your terminal:
Setting
Model Recommendation
If you want to do customize model and column, please check Recommendation Model "code" column to prevent code duplicate.
Model Recommendation is default belongs to \Tsubasarcs\Recommendations\IlluminateUser::class
,
You need to change it to your application model.
Default attributes
Generating Code type and length attributes can be customize via setting default key value.
Code structure has three parts, prefix
, timestamp
and code
.
You can decide to join prefix
and timestamp
or not and custom symbol
between part and part.
Usage
Generating Code
Code Facade end point is generate()
, it will return an array.
If you are not using endpoint, it will return CodeService
instance.