I want change the default timezone from UTC to Asia/Tehran where I can change it? I tried by changing this code in app.php but it did not work.
'timezone' => 'UTC',
to
'timezone' => 'Asia/Tehran',
I want change the default timezone from UTC to Asia/Tehran where I can change it? I tried by changing this code in app.php but it did not work.
'timezone' => 'UTC',
to
'timezone' => 'Asia/Tehran',
更新应用程序后.php在下面运行命令并判断
php artisan config:cache
php artisan cache:clear
You can create below type of route for clear cache in laravel
Route::get('/clear-cache', function() {
$configCache = Artisan::call('config:cache');
$clearCache = Artisan::call('cache:clear');
// return what you want
});