src/Route/AdminRoute.php
public function get()
    {
        $wordpressUri = trim(config('app.wp.dir', 'cms'), '\/');
        $route = $this->router->any($wordpressUri.'/wp-admin/{any?}', function () {
            return new Response();
        });

        $route->middleware('admin');
        $route->bind($this->request);

        return $route;
    }
public function get()
    {
        $wordpressUri = trim(config('app.wp.dir', 'cms'), '\/');
        $route = $this->router->any($wordpressUri.'/wp-admin/{any?}', function () {
            return new Response();
        });

        $route->middleware('admin');
        $route->bind($this->request);

        return $route;
    }
public function get ( ) { $ wordpressUri = trim ( config ( 'app.wp.dir' , 'cms' ) , '\/' ) ; $ route = $ this -> router -> any ( $ wordpressUri . '/wp-admin/{any?}' , function ( ) { return new Response ( ) ; } ) ; $ route -> middleware ( 'admin' ) ; $ route -> bind ( $ this -> request ) ; return $ route ; }
Return the catch-all WordPress administration route.

@throws \Illuminate\Container\EntryNotFoundException

@return \Illuminate\Routing\Route
Return the catch - all WordPress administration route .