<?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)
English Phrases, Idioms, and Proverbs
English Phrases, Idioms, and Proverbs 1. A blessing in disguise Meaning: Something that seems bad at first but turns out to be good...
-
Total No. of printed pages: 7 DLIEC/23/2024 District Level Internal Examination Committee, Kamrup Half Yearly Examination, 2023-24 Class:...
-
CBSE Class VIII Mathematics (Ganita Prakash) — 160-Day Lesson Plan A comprehensive, day-to-day instructional p...
-
A Universally Unique Identifier (UUID) is a 128-bit value used to uniquely identify information in computer systems. It is widely used in ...
No comments:
Post a Comment