File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ $table->smallInteger('status'); // 2 byte -> maximum of 16 different values
21
21
$table->unsignedSmallInteger('status'); // maximum of 17 different values
22
22
$table->mediumInteger('status'); // 3 byte -> maximum of 24 different values
23
23
```
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
+
25
26
There are only a few use-cases, but you can add as many fields as you like.
26
27
27
28
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.
63
64
*/
64
65
public function setSentAttribute($sent = true)
65
66
{
66
- return $this->setFlag('status',MESSAGE_SENT, $sent);
67
+ return $this->setFlag('status', MESSAGE_SENT, $sent);
67
68
}
68
69
69
70
/**
You can’t perform that action at this time.
0 commit comments