<?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 Employability Skills: Unit 1 Communication Skills Questions and Answers
Session 1: Methods of Communication 1. What is Communication? Answer – The word ‘Communication’ comes from the Latin word Communicare, w...
-
অধ্যায়-১২ বিদ্যুৎ নির্বাচিত প্রশ্নোত্তৰ প্রশ্নঃ তাঁৰ এডালৰ দৈর্ঘ্য দুগুণলৈ বৃদ্ধি কৰিলে এমিটাৰৰ পাঠৰ কি পৰিৱৰ্তন হয়? উত্তৰঃ এমিট...
-
Introduction Vegetable crops require frequent irrigation for better growth and development. Irrigation requirement may vary from crop...
-
ভাৰতৰ ৰাজনৈতিক দল অনুশীলনীৰ প্রশ্নোত্তৰ অতি চমু প্রশ্নোত্তৰ প্রশ্ন ১। একদলীয় শাসন ব্যৱস্থা থকা এখন দেশৰ নাম লিখা। উত্তৰঃ চীন। প...
No comments:
Post a Comment