carbon date from format
Carbon::createFromFormat('Y-m-d H:i:s', $request->date)->format('d-m-Y')
carbon date from format
Carbon::createFromFormat('Y-m-d H:i:s', $request->date)->format('d-m-Y')
carbon start of day
// start of day in date (2021-01-01 00:00:00)
Carbon::now()->startOfDay()
// start of day in timestamp (1609459200)
Carbon::now()->startOfDay()->timestamp
// end of day in date (2021-01-01 23:59:59)
Carbon::now()->endOfDay()
// end of day in timestamp (1609545599)
Carbon::now()->endOfDay()->timestamp
carbon add few hours
Carbon::now('UTC')->addHour($hours)->format('Y-m-d H:i:s')
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us