Answers for "from two different string create single carbon datetime object"

PHP
5

carbon now format

use Carbon/Carbon
Carbon::now()->format('Y-m-d H:i:s');
Posted by: Guest on August-19-2020
0

carbon subdays

$users = Users::where('status_id', 'active')
           ->where( 'created_at', '>', Carbon::now()->subDays(30))
           ->get();
Posted by: Guest on January-26-2021

Code answers related to "from two different string create single carbon datetime object"

Browse Popular Code Answers by Language