My HTML code is like below
<a href="#" data-detailsurl="{{ route('owner.tenant.notes', ['id' => $tenant->id]) }}" class="show_notes">Show</a>
My route is like below.
Route::get('notes/{id}', [TenantController::class, 'notes'])->name('notes');
My controller function is like below.
public function notes( Request $request, $id )
{
if ($request->ajax()) {
return $data['notes'] = $this->tenantService->getById( $id );
}
}
I am getting error Too few arguments to function App\Http\Controllers\Owner\TenantController::notes(), 1 passed in