<?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)
SEBA Class X Mathematics Chapter 2 Exercise 2.3 Solutions
পাঠ ২ বহুপদ Polynomials Exercise 2.3 1. \(P(x) \) বহুপদটোক \(g(x) \) বহুপদটোৰে হৰণ কৰা আৰু প্ৰতিটোৰে ...
-
Introduction Vegetable crops require frequent irrigation for better growth and development. Irrigation requirement may vary from crop ...
-
ভাৰতৰ ৰাজনৈতিক দল অনুশীলনীৰ প্রশ্নোত্তৰ অতি চমু প্রশ্নোত্তৰ প্রশ্ন ১। একদলীয় শাসন ব্যৱস্থা থকা এখন দেশৰ নাম লিখা। উত্তৰঃ চীন। প...
-
fetch() is a modern API in JavaScript used to make network requests, typically to fetch resources from a server. It returns a Promise that ...
No comments:
Post a Comment