We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5613dd commit 9043828Copy full SHA for 9043828
src/Models/ModelAction.php
@@ -46,6 +46,11 @@ public function getExtraProperty(string $propertyName): mixed
46
return Arr::get($this->properties->toArray(), $propertyName);
47
}
48
49
+ public function getActTimeAttribute(): string
50
+ {
51
+ return $this->act_at->toTimeString();
52
+ }
53
+
54
public function scopeToActBetween($query, Carbon $start, Carbon $end)
55
{
56
return $query->whereBetween('act_at', [$start->toTimeString(), $end->toTimeString()]);
0 commit comments