8000 Update README.md · Fanmade/laravel-bitwise-trait@bc41e53 · GitHub
[go: up one dir, main page]

Skip to content

Commit bc41e53

Browse files
authored
Update README.md
1 parent 8364344 commit bc41e53

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ $table->smallInteger('status'); // 2 byte -> maximum of 16 different values
2121
$table->unsignedSmallInteger('status'); // maximum of 17 different values
2222
$table->mediumInteger('status'); // 3 byte -> maximum of 24 different values
2323
```
24-
You get the idea. Most times, you probably only need an unsigned tinyInteger :)
24+
You get the idea. Most times you probably only need an unsigned tinyInteger :)
25+
2526
There are only a few use-cases, but you can add as many fields as you like.
2627

2728
Include the Trait in your model like this:
@@ -63,7 +64,7 @@ To make your life easier, I recommend to use custom getters and setters.
6364
*/
6465
public function setSentAttribute($sent = true)
6566
{
66-
return $this->setFlag('status',MESSAGE_SENT, $sent);
67+
return $this->setFlag('status', MESSAGE_SENT, $sent);
6768
}
6869

6970
/**

0 commit comments

Comments
 (0)
0