vincej
2 weeks ago
2557
36
Laravel

Route List not the same as web.php

Posted 2 weeks ago by vincej

I have done a php artisan cache:clear, route:clear, clear-compiled. And still when I do a route:list it refuses to reflect the one specific route as written within web.php. Instead it will list a route that I had described much earlier.

earlier route: salesAndWorkOrder

current route: salesWorkOrder

even if I change the route back to the earlier version it still does not find it, and I get a

NotFoundHTTPException

Ok - so thinking it was PHPStorm, I did an invalidate caches restart, and Nope.

The spelling is the same, the capitalisation is the same.

the route is being called out of a view using a forloop like this:

<a  style="font-weight: bold; text-decoration-line: underline;color: darkblue" href="/salesWorkOrder/{{$orders[$i]->reference}}" target="_blank"> {{ $orders[$i]->reference}}</a>

What am I doing wrong ??

Many thanks !

Please sign in or create an account to participate in this conversation.