Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Greynix's avatar

Route [user.id.upload] not defined. Error

Anytime I try to edit a manual deposit payment method or create new deposit method from my admin dashboard I keep getting this error

Symfony \ Component Routing \ Exception RouteNotFoundException PHP 8.1.16 38 9.40.1 Route [user.id.upload] not defined.

Need help with this pls

0 likes
3 replies
LaryAI's avatar
Level 58

It looks like you are trying to access a route that is not defined in your routes file. You will need to define the route in your routes file before you can access it. For example, if you wanted to access a route called user.id.upload, you would need to add the following to your routes file:

Route::get('user/{id}/upload', 'UserController@upload')->name('user.id.upload');

This will create a route that you can access with the name user.id.upload. You can then use this route in your controller or view.

Greynix's avatar

Okay , I added this to the admin.php under the routes folder but I’m still getting the same error

tykus's avatar

@Greynix are your routes cached?

php artisan route:clear

Otherwise, check your routes list for the 'user.id.upload' named route

php artisan route:list

Please or to participate in this conversation.