Search
 
SCRIPT & CODE EXAMPLE
 

PHP

set laravel local time to indonesia

## AppServiceProvider.php

public function boot()
{
	config(['app.locale' => 'id']);
	Carbon::setLocale('id');
	date_default_timezone_set('Asia/Jakarta');
}
Comment

PREVIOUS NEXT
Code Example
Php :: php session destroy 
Php :: change key value laravel map collection 
Php :: left join laravel 
Php :: laravel collection slice 
Php :: laravel socialite 
Php :: Add Empty Cart Button WooCommerce 
Php :: laravel Your requirements could not be resolved to an installable set of packages. 
Php :: php upload file 
Php :: php program to find factorial of a number using function 
Php :: convert single quote in htmlentities php 
Php :: laravel event generate 
Php :: php laravel between dates 
Php :: default timezone php 
Php :: how to sum in laravel 
Php :: how to create controller inside folder in laravel 
Php :: laravel 8 check if record exists 
Php :: current date in codeigniter 
Php :: hide env file in laravel 
Php :: laravel throw function 
Php :: laravel mass update 
Php :: php switch case default 
Php :: email configuration for gmail in laravel 
Php :: ternary operator for three conditions in php 
Php :: big int php 
Php :: laravel ignore unique on update 
Php :: php constant 
Php :: php read csv 
Php :: php read sql 
Php :: php get url after question mark 
Php :: laravel has one 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =