Commit 07a27506bc265a6020123aa95a9d2b46486dc393

Authored by Андрей Ларионов
1 parent fab8abcbb4
Exists in master

Коммит route

Showing 2 changed files with 14 additions and 0 deletions Side-by-side Diff

... ... @@ -0,0 +1,3 @@
  1 +<pre><?
  2 + print_r(phpinfo());
  3 +?></pre>
0 4 \ No newline at end of file
... ... @@ -365,3 +365,14 @@ Route::get(&#39;workers/profile/{worker}&#39;, [WorkerController::class, &#39;profile&#39;])-&gt;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');