📅  最后修改于: 2022-03-11 14:53:54.625000             🧑  作者: Mango
function set_active( $route ) {
if( is_array( $route ) ){
return in_array(Request::path(), $route) ? 'active' : '';
}
return Request::path() == $route ? 'active' : '';
}