feat: spu
This commit is contained in:
@@ -51,4 +51,13 @@ class Cycle extends Model
|
||||
{
|
||||
return $this->where('id',$id)->first();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $date
|
||||
* @return int
|
||||
*/
|
||||
public function getIdByDate(string $date): int
|
||||
{
|
||||
return $this->where('dates',$date)->value('id') ?? 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user