Skip to content

Showing the right duration for each cookie (possible solution) #84

@abdel-aouby

Description

@abdel-aouby

Hello, I saw few opened issue about the issue of carbon calculating the interval time for cookies

#48
#56

I tested this solution and it works for me, is there any reason why it is not used?

Solution:

use Carbon\Carbon;

Carbon::now()->diffForHumans(Carbon::now()->addMinutes($cookie->duration), true)

If interested, I can create a pull request

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions