• 0
Votes
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 195

Backtrace:

File: /home/u125378470/domains/lawhelpguru.org/public_html/application/views/question.php
Line: 195
Function: _error_handler

File: /home/u125378470/domains/lawhelpguru.org/public_html/application/controllers/Questions.php
Line: 416
Function: view

File: /home/u125378470/domains/lawhelpguru.org/public_html/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

Image not show on web page (Laravel)

There is a route problem or image address problem. The image is not displaying on some pages but displaying on some pages:

This is the route address in which image is not displaying:

Route::get('users/edit/{id}', [AppHttpControllersUserController::class, 'edit'])->name('edit-user');

and this is the image address of this route:

http://localhost/Complain-Management-System/public/users/edit/images/1312455072.jpg

and this is the image source on blade:

"images/{{ Auth::user()->image }}" class="rounded-circle" width="130" height="130" alt="">

The image is displaying good on this route:

Route::get('users', [AppHttpControllersUserController::class, 'index'])->name('manage-user');

and the image URL of this route is:

http://localhost/Complain-Management-System/public/images/1312455072.jpg

Can someone please solve this problem, it's important. Thanks