首先我们定义一个Address控制器,并在其中定义两个方法,分别是:index、details,如下图:

    定义address控制器及其方法
    image.png

    定义路由规则:
    image.png

    访问结果:
    image.png