Skip to content

Commit b8ce5c0

Browse files
committed
Laravel 5 Update
1 parent 84e4c54 commit b8ce5c0

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
# L5-eloquent-tokenable
2+
[![Latest Stable Version](https://poser.pugx.org/kduma/eloquent-tokenable/v/stable.svg)](https://packagist.org/packages/kduma/eloquent-tokenable)
3+
[![Total Downloads](https://poser.pugx.org/kduma/eloquent-tokenable/downloads.svg)](https://packagist.org/packages/kduma/eloquent-tokenable)
4+
[![Latest Unstable Version](https://poser.pugx.org/kduma/eloquent-tokenable/v/unstable.svg)](https://packagist.org/packages/kduma/eloquent-tokenable)
5+
[![License](https://poser.pugx.org/kduma/eloquent-tokenable/license.svg)](https://packagist.org/packages/kduma/eloquent-tokenable)
6+
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/76ba87c2-d5c1-4516-af23-3d38f2990145/mini.png)](https://insight.sensiolabs.com/projects/76ba87c2-d5c1-4516-af23-3d38f2990145)
7+
28
Allows using tokens (HashIDs) instead of id in Laravel Eloquent models.
39

410
# Setup
511
Add the package to the require section of your composer.json and run `composer update`
612

7-
"kduma/eloquent-tokenable": "~1.0"
13+
"kduma/eloquent-tokenable": "^1.1"
814

915
# Prepare models
1016
In your model add following lines:

composer.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,13 @@
1111
],
1212
"require": {
1313
"php": ">=5.4.0",
14-
"hashids/hashids": "~1.0@dev",
14+
"hashids/hashids": "^1.0",
1515
"illuminate/database": "5.*"
1616
},
1717
"autoload": {
1818
"psr-4": {
1919
"KDuma\\Eloquent\\": ""
2020
}
2121
},
22-
"extra": {
23-
"branch-alias": {
24-
"dev-develop": "1.0-dev"
25-
}
26-
},
2722
"minimum-stability": "dev"
2823
}

0 commit comments

Comments
 (0)