File: /var/www/vhost/disk-apps/alq-central.bikenow.co/routes/web.php
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Storage;
Route::get('/', function () {
return view('welcome');
});
Route::post('/update/bulk/pass', 'HomeController@bulkPassword');
Auth::routes();
Route::get('/home', 'HomeController@index')->name('home');
Route::get('/cache', function () {
Artisan::call('cache:clear');
Artisan::call('route:clear');
Artisan::call('view:clear');
Cache::flush();
Storage::deleteDirectory('public/');
return '<h1>Cache cleared</h1>';
});