gianmarx
4 weeks ago
145
5
Laravel

calculate in view elapsed time in second

Posted 4 weeks ago by gianmarx

i have to calculate elapsed time i put in the view:

{{ $poll->created_at-$poll->updated_at}}

gives me following error:

ErrorException Object of class Illuminate\Support\Carbon could not be converted to number (View:

Please sign in or create an account to participate in this conversation.