HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //home/posscale/.trash/1routes/web.php
<?php

use App\Http\Controllers\ProfileController;
use App\Http\Controllers\RegisterTenant;
use App\Http\Controllers\SyncPrintersController;
use App\Http\Requests\TenantRequest;
use App\Http\Requests\PrinterTypeRequest;
use Illuminate\Foundation\Http\Middleware\HandlePrecognitiveRequests;
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!
|
*/

Route::get('/', function () {
    return view('welcome');
})->name('home');
Route::get('/sync-printers', [SyncPrintersController::class, 'index'])->name('sync_printers');
Route::get('/dashboard', function () {
    return view('dashboard');
})->middleware(['auth', 'verified'])->name('dashboard');

Route::middleware('auth')->group(function () {

    Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit');
    Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update');
    Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy');

});




Route::resource('printer', RegisterTenant::class);
Route::post('/pre-register/printer', function (PrinterTypeRequest $request) {    
})->name('pre-register')->middleware([HandlePrecognitiveRequests::class]);
// require __DIR__.'/auth.php';