Download the PHP package tpenaranda/aiditokens without Composer
On this page you can find all versions of the php package tpenaranda/aiditokens. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download tpenaranda/aiditokens
More information about tpenaranda/aiditokens
Files in tpenaranda/aiditokens
Download tpenaranda/aiditokens
More information about tpenaranda/aiditokens
Files in tpenaranda/aiditokens
Vendor tpenaranda
Package aiditokens
Short Description Use custom tokens instead of IDs on Laravel models.
License MIT
Homepage https://github.com/tpenaranda/aiditokens
Package aiditokens
Short Description Use custom tokens instead of IDs on Laravel models.
License MIT
Homepage https://github.com/tpenaranda/aiditokens
Please rate this library. Is it a good library?
Informations about the package aiditokens
Laravel Aiditokens
A Laravel package to reference Models by using custom string tokens instead of IDs.
Use cases
- You want to hide ID information on your endpoints.
/api/user/32
ends as/api/user/5cb0b0dddf8ae37a6e8066d4ffd838d91c94bdc7
. - You need to create temporary references to your models. For instance, a link for resetting a password that will expire in two hours
reset/password/user/3f6e660c376c9fcaeaddeb50b0893d73e772100f
.
Installation
Install package using Composer.
$ composer require tpenaranda/aiditokens
Run migrations.
$ php artisan migrate
Usage
-
Include Tokens trait on desired Laravel model.
-
Get (create if necessary) a token:
-
Retrieve a model by token:
- Custom token generation
Advanced usage
-
Bind on RouteServiceProvider for route model explicit binding
- Route file
Happy coding!
All versions of aiditokens with dependencies
PHP Build Version
Package Version
The package tpenaranda/aiditokens contains the following files
Loading the files please wait ....