protected function getModelName($name = null)
    {
        $name = isset($name) ? $name : $this->resource;

        //return ucwords(camel_case($this->getResourceName($name)));

        return str_singular(ucwords(camel_case(class_basename($name))));
    }
protected function getModelName($name = null)
    {
        $name = isset($name) ? $name : $this->resource;

        //return ucwords(camel_case($this->getResourceName($name)));

        return str_singular(ucwords(camel_case(class_basename($name))));
    }
protected function getModelName ( $ name = null ) { $ name = isset ( $ name ) ? $ name : $ this -> resource ; //return ucwords(camel_case($this->getResourceName($name))); return str_singular ( ucwords ( camel_case ( class_basename ( $ name ) ) ) ) ; }
Get the name for the model

@param null $name
@return string
Get the name for the model