private function modalUrl($type)
    {
        switch ($type) {
        case 'edit':
            $action = 'update';
            break;
        default:
            $action = $type;
            break;
        }

        return route('crudapi.'.$action.'.item', $this->model);
    }
private function modalUrl($type)
    {
        switch ($type) {
        case 'edit':
            $action = 'update';
            break;
        default:
            $action = $type;
            break;
        }

        return route('crudapi.'.$action.'.item', $this->model);
    }
private function modalUrl ( $ type ) { switch ( $ type ) { case 'edit' : $ action = 'update' ; break ; default : $ action = $ type ; break ; } return route ( 'crudapi.' . $ action . '.item' , $ this -> model ) ; }
Get the modals url.

@param $type

@return string
Get the modals url .