Get Route Name in Middleware

It’s always fun trying to do things the right way. I’m implementing some filters that keep a person from bypassing a specific page until they handle all the items on the list. It’s a challenge. The keeping them on the page and the passing on it for now is easy. Now I have to figure out exactly how to manage the “taking care of it” part.

However I wasn’t liking the possiblity that I could introduce errors in processing by resolving the request to get the route name. So after about 2 hours of searching for alternatives I finally found a method that doesn’t require me to resolve the request but I can still get the name.

$route = Route::getRoutes()->match($request);

$route_name = $route->getName();

Dragon Hunting

Saturday, June 13, 2015 8:15 PMTwo weeks in and I was still trying to find my quarry. I stared at the picture in my hand hoping to find s...… Continue reading

First Public Writing

Published on September 30, 2015

Will Miss You!

Published on August 21, 2015