F
Filament11mo ago
daar

Show blade page security + integrate into filament panel

I've integrated a simple invoicing feature into my app (see the web route below). I'd love to get insights from experts on two points: 1. Is the auth middleware I've applied sufficient to secure this route? 2. I've been trying to link a blade view with Filament. However, using a ViewField, seems to disrupt the layout by moving the navigation sidebar and top bar drastically. I believe this is likely due to a CSS issue. If I aim to integrate this into Filament, is there a way to separate the CSS within the blade view itself (and not interfere with the filament CSS classes), or are there tools available that can help?
Route::get('/emr/invoice', function (Request $request) {

$invoice = Invoice::find($request->id);
$items = $invoice->payments;

return view('invoices.default', compact('invoice', 'items'));
})
->name('/emr/invoice')
->middleware('auth');
Route::get('/emr/invoice', function (Request $request) {

$invoice = Invoice::find($request->id);
$items = $invoice->payments;

return view('invoices.default', compact('invoice', 'items'));
})
->name('/emr/invoice')
->middleware('auth');
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server