Commit 07a27506bc265a6020123aa95a9d2b46486dc393
1 parent
fab8abcbb4
Exists in
master
Коммит route
Showing 2 changed files with 14 additions and 0 deletions Side-by-side Diff
public/index__.php
routes/web.php
... | ... | @@ -365,3 +365,14 @@ Route::get('workers/profile/{worker}', [WorkerController::class, 'profile'])->na |
365 | 365 | |
366 | 366 | //Страница вакансии |
367 | 367 | Route::get('employer/ad/{ad_employer}', [AdEmployerController::class, 'ad_employer'])->name('ad-employer'); |
368 | + | |
369 | +Route::get('clear/', function() { | |
370 | + Artisan::call('config:cache'); | |
371 | + Artisan::call('cache:clear'); | |
372 | + Artisan::call('config:clear'); | |
373 | + Artisan::call('view:clear'); | |
374 | + Artisan::call('route:clear'); | |
375 | + exec('rm -f ' . storage_path('logs/.log')); | |
376 | + exec('rm -f ' . base_path('.log')); | |
377 | + return "Cache is cleared"; | |
378 | +})->name('clear.cache'); |