Skip to content

Commit 5e80ff9

Browse files
authored
Create README.md
1 parent 5772159 commit 5e80ff9

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Model random ID generator.
2+
3+
Automatically generate cryptographic random integers that fits mysql BIGINT column and JavaScript MAX_SAFE_INTEGER.
4+
5+
## Installation
6+
7+
Make sure your model id is a BIGINT for example: `$table->bigInteger('id')->primary();`.
8+
9+
10+
Add to your model `use Firevel\ModelRandomId\HasRandomId;` and
11+
```
12+
/**
13+
* Primary key incrementing.
14+
*
15+
* @var bool
16+
*/
17+
public $incrementing = false;
18+
```

0 commit comments

Comments
 (0)