File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
1
# 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
+
2
8
Allows using tokens (HashIDs) instead of id in Laravel Eloquent models.
3
9
4
10
# Setup
5
11
Add the package to the require section of your composer.json and run ` composer update `
6
12
7
- "kduma/eloquent-tokenable": "~1.0 "
13
+ "kduma/eloquent-tokenable": "^1.1 "
8
14
9
15
# Prepare models
10
16
In your model add following lines:
Original file line number Diff line number Diff line change 11
11
],
12
12
"require" : {
13
13
"php" : " >=5.4.0" ,
14
- "hashids/hashids" : " ~ 1.0@dev " ,
14
+ "hashids/hashids" : " ^ 1.0" ,
15
15
"illuminate/database" : " 5.*"
16
16
},
17
17
"autoload" : {
18
18
"psr-4" : {
19
19
"KDuma\\ Eloquent\\ " : " "
20
20
}
21
21
},
22
- "extra" : {
23
- "branch-alias" : {
24
- "dev-develop" : " 1.0-dev"
25
- }
26
- },
27
22
"minimum-stability" : " dev"
28
23
}
You can’t perform that action at this time.
0 commit comments