From 07a27506bc265a6020123aa95a9d2b46486dc393 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=20=D0=9B=D0=B0=D1=80?= =?UTF-8?q?=D0=B8=D0=BE=D0=BD=D0=BE=D0=B2?= Date: Thu, 26 Oct 2023 17:36:23 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BE=D0=BC=D0=BC=D0=B8=D1=82=20route?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index__.php | 3 +++ routes/web.php | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 public/index__.php 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'); -- 1.7.10.4