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');
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #carbon #set #timezone
ADD COMMENT
Topic
Name
9+5 =