socieboy
5 years ago
4405
5
Laravel

Route name exists?

Posted 5 years ago by socieboy

Hey guys what's the best method to know if a route name exists.

something like.

if(Route::exists('name.of.my.route'))
{
    //Route exists
}else{
    //Register route.
}

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