<?php
require __DIR__ . '/vendor/autoload.php';
$app = require_once __DIR__ . '/bootstrap/app.php';
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
try {
echo "Clearing config cache...\n";
$kernel->call('config:clear');
echo "Clearing route cache...\n";
$kernel->call('route:clear');
echo "Clearing view cache...\n";
$kernel->call('view:clear');
echo "Clearing cache...\n";
$kernel->call('cache:clear');
echo "Regenerating JWT secret...\n";
$kernel->call('jwt:secret', ['--force' => true]); // Regenerate JWT secret
echo "All cache and JWT configurations cleared successfully!\n";
} catch (Exception $e) {
echo "An error occurred: " . $e->getMessage() . "\n";
}
js
Thursday, January 23, 2025
PHP code to clear laravel 5.5 config
Subscribe to:
Post Comments (Atom)
contacts
1 Swasthyam Multispeciality Clinic 1st Floor, Lobby C, Supreme Tower, GS Rd, near Silkalay Store, Christian Basti, Guwahati, Assam 781005 92...
-
Total No. of printed pages: 7 DLIEC/23/2024 District Level Internal Examination Committee, Kamrup Half Yearly Examination, 2023-24 Class:...
-
To check whether Apache is installed on an Ubuntu system, you can use the following methods: 1. Check Apache Service Status Run the f...
-
2. The Sound of Music Part I Evelyn Glennie Listens to Sound without Hearing It 1. RUSH hour crowds jostle for positio...
No comments:
Post a Comment