File: /home/clientsoftwares/public_html/repairshop.clientsoftwares.com/routes/web.php
<?php
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "web" middleware group. Make something great!
|
*/
if (config('app.demo_mode')) {
Route::get('get-pro', function () {
return view('demo');
});
}
Route::get('/opt', function () {
Artisan::call('optimize:clear');
Artisan::call('route:clear');
Artisan::call('config:clear');
Artisan::call('config:cache');
Artisan::call('view:cache');
dd('Optimized and cache enabled');
});
Route::get('{all}', function () {
return view('app');
})->where('all', '^((?!api).)*')
->name('index');