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

PREVIOUS NEXT
Code Example
Php :: convert utc to local time phpAdd Answer 
Php :: woocommerce_order_status_changed 
Php :: get last inserted id in php 
Php :: PHP Casting Strings and Floats to Integers 
Php :: php discord webhook 
Php :: yii2 where in 
Php :: php ping test 
Php :: laravel number add 0 before 
Php :: php sort multidimensional array 
Php :: get count sql query in php 
Php :: laravel collection tojson 
Php :: guzzle http try catch 
Php :: str_includes php 
Php :: laravel latest() 
Php :: unique validation on update laravel 
Php :: php calculate percentage 
Php :: php grab month from date 
Php :: get current page slug 
Php :: remove html tags from a string except p in php 
Php :: wp_mail html content 
Php :: wordpress get current category slug 
Php :: the token has been blacklisted laravel jwt 
Php :: php check regular string 
Php :: 419 page expired in laravel 
Php :: isset submit in php 
Php :: laravel gigapay update employee 
Php :: how to install redis for php7.4 
Php :: wp override home url with php 
Php :: php parse json 
Php :: yii2 activeform adding field placeholder 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =