add finish todos list
This commit is contained in:
@@ -55,4 +55,11 @@ class User extends Authenticatable
|
||||
{
|
||||
return $this->hasMany(ToDo::class);
|
||||
}
|
||||
|
||||
public function stopCurrentTimeTracker(): void
|
||||
{
|
||||
$this->currentTimeTracker()->update(['end_at' => now()]);
|
||||
$this->time_tracker_id = null;
|
||||
$this->save();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user