Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel carbon set timezone

in the AppServiceProvider.php you can add the php functionality to alter the timestamp for the whole project

public function boot()
{
    Schema::defaultStringLength(191);
    date_default_timezone_set('Asia/Aden');
}
 
PREVIOUS NEXT
Tagged: #laravel #carbon #set #timezone
ADD COMMENT
Topic
Name
1+2 =