diff --git a/public/index__.php b/public/index__.php new file mode 100644 index 0000000..68b6133 --- /dev/null +++ b/public/index__.php @@ -0,0 +1,3 @@ +
\ No newline at end of file diff --git a/routes/web.php b/routes/web.php index fa4a172..10148a1 100644 --- a/routes/web.php +++ b/routes/web.php @@ -365,3 +365,14 @@ Route::get('workers/profile/{worker}', [WorkerController::class, 'profile'])->na //Страница вакансии Route::get('employer/ad/{ad_employer}', [AdEmployerController::class, 'ad_employer'])->name('ad-employer'); + +Route::get('clear/', function() { + Artisan::call('config:cache'); + Artisan::call('cache:clear'); + Artisan::call('config:clear'); + Artisan::call('view:clear'); + Artisan::call('route:clear'); + exec('rm -f ' . storage_path('logs/.log')); + exec('rm -f ' . base_path('.log')); + return "Cache is cleared"; +})->name('clear.cache');