Skip to content
Advertisement

Route [admin.editcategory] not defined

Hello Everyone I am new in laravel. I just started to watch a series of ecommerce from youtube. In the series at the 15th video , when editing the category i did as same as the youtuber did. But there is an error. Please help me anyone.

JavaScript

Here is my web.php codes

JavaScript

Here is my AdminCategoryComponent.php codes

JavaScript
Here is admin-category-component.blade.php

JavaScript

Here is AdminEditCategoryComponent.php

JavaScript

Here is my admin-edit-category-component.blade.php

JavaScript

Advertisement

Answer

Change the href in admin-category-component.blade.php to href=”‘/admin/categories/edit/{{$category->slug}}” and remove the route name . And it should be fine.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement