Search
 
SCRIPT & CODE EXAMPLE
 

PHP

carbon day 30 days ago

Carbon::parse('2021-07-30')->subDays(30)->format('Y-m-d 00:00:00');
Comment

carbon 2 days ago

$users = Users::where('status_id', 'active')
           ->where( 'created_at', '>', Carbon::now()->subDays(30))
           ->get();
Comment

carbon two day ago

$dt  =Carbon::now();

echo $dt->subDay();                      // 2012-03-03 00:00:00
echo $dt->subDays(29); 
Comment

PREVIOUS NEXT
Code Example
Php :: check if number is multiple of 3 in php 
Php :: if browser url is having domain in it check using php 
Php :: is users logged in laravel blade 
Php :: php memory usage view 
Php :: how to search two needle in an array in_array php 
Php :: num_rows in php 
Php :: response()-make laravel pdf 
Php :: php check if date is older than 1 month 
Php :: loop index foreach laravel 
Php :: php include and require statements 
Php :: php __construct 
Php :: php password validation regex 
Php :: php increment letter 
Php :: linux set default php 
Php :: sort laravel eloquent 
Php :: get the url without the query string php 
Php :: request get query string laravel 
Php :: google translate api php 
Php :: how to change laravel port 
Php :: name csrf token laravel mismatch 
Php :: last page url in php laravel 
Php :: Array and string offset access syntax with curly braces is no longer supported in C:xampphtdocse-examPHPExcelPHPExcelSharedString.php on line 529 
Php :: laravel-socialite-invalidstateexception 
Php :: php sql query where in array 
Php :: how to replace multiple characters in a string in php 
Php :: pass javascriot value from one page to another 
Php :: Remove public or index file from url in laravel 
Php :: laravel composer update 
Php :: laravel old value or default 
Php :: get url link in php 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =