src/Http/Router/Route.php
private function getResourceName($url, $target)
    {
        switch ($target) {
            case 'index':
                return [$url, $url.'/index'];
                break;

            case 'show':
                return [$url.'/show/{param}'];
                break;

            case 'add':
                return [$url.'/add'];
                break;

            case 'insert':
                return [$url.'/insert'];
                break;

            case 'edit':
                return [$url.'/edit/{param}'];
                break;

            case 'update':
                return [$url.'/update', $url.'/update/{param}'];
                break;

            case 'update':
                return [$url.'/delete/{param}'];
                break;
        }
    }
private function getResourceName($url, $target)
    {
        switch ($target) {
            case 'index':
                return [$url, $url.'/index'];
                break;

            case 'show':
                return [$url.'/show/{param}'];
                break;

            case 'add':
                return [$url.'/add'];
                break;

            case 'insert':
                return [$url.'/insert'];
                break;

            case 'edit':
                return [$url.'/edit/{param}'];
                break;

            case 'update':
                return [$url.'/update', $url.'/update/{param}'];
                break;

            case 'update':
                return [$url.'/delete/{param}'];
                break;
        }
    }
private function getResourceName ( $ url , $ target ) { switch ( $ target ) { case 'index' : return [ $ url , $ url . '/index' ] ; break ; case 'show' : return [ $ url . '/show/{param}' ] ; break ; case 'add' : return [ $ url . '/add' ] ; break ; case 'insert' : return [ $ url . '/insert' ] ; break ; case 'edit' : return [ $ url . '/edit/{param}' ] ; break ; case 'update' : return [ $ url . '/update' , $ url . '/update/{param}' ] ; break ; case 'update' : return [ $ url . '/delete/{param}' ] ; break ; } }
Get the resource name.

@param string $url
@param string $target

@return array
Get the resource name .