How do you get percentage of time left for carbon php? (Laravel 8.X)

前端 未结 0 770
面向向阳花
面向向阳花 2021-01-13 08:56

So I have the following:

$timeLeft   = $queue->completed_at->diffInSeconds(now()); 

dd($timeLeft);

Where $queue is a mode

相关标签:
回答
  • 消灭零回复
提交回复
热议问题