Forum

laravel: diff in da...
 
Notifications
Clear all

laravel: diff in days from mysql date

1 Posty
1 Users
0 Reactions
1,090 Widok
0
Topic starter

example

1 Answer
0
Topic starter
$days = Carbon::now()->diffInDays(Carbon::parse($user->createdAt));

Odpowiedź

Author Name

Author Email

Your question *

 
Preview 0 Revisions Saved
Share: