classes/Models/Change.php
public function getModelNameHtmlAttribute()
    {
        $class = Decoy::controllerForModel($this->model);

        // There is not a controller for the model
        if (!$class || !class_exists($class)) {
            return sprintf('<b><a href="%s">%s</a></b>',
            $this->filterUrl(['model' => $this->model]),
            preg_replace('#(?<!\ )[A-Z]#', ' $0', $this->model));
        }

        // There is a corresponding controller class
        $controller = new $class;
        return sprintf('<b class="js-tooltip" title="%s"><a href="%s">%s</a></b>',
            htmlentities($controller->description()),
            $this->filterUrl(['model' => $this->model]),
            Str::singular($controller->title()));
    }
public function getModelNameHtmlAttribute()
    {
        $class = Decoy::controllerForModel($this->model);

        // There is not a controller for the model
        if (!$class || !class_exists($class)) {
            return sprintf('<b><a href="%s">%s</a></b>',
            $this->filterUrl(['model' => $this->model]),
            preg_replace('#(?<!\ )[A-Z]#', ' $0', $this->model));
        }

        // There is a corresponding controller class
        $controller = new $class;
        return sprintf('<b class="js-tooltip" title="%s"><a href="%s">%s</a></b>',
            htmlentities($controller->description()),
            $this->filterUrl(['model' => $this->model]),
            Str::singular($controller->title()));
    }
public function getModelNameHtmlAttribute ( ) { $ class = Decoy :: controllerForModel ( $ this -> model ) ; // There is not a controller for the model if ( ! $ class || ! class_exists ( $ class ) ) { return sprintf ( '<b><a href="%s">%s</a></b>' , $ this -> filterUrl ( [ 'model' => $ this -> model ] ) , preg_replace ( '#(?<!\ )[A-Z]#' , ' $0' , $ this -> model ) ) ; } // There is a corresponding controller class $ controller = new $ class ; return sprintf ( '<b class="js-tooltip" title="%s"><a href="%s">%s</a></b>' , htmlentities ( $ controller -> description ( ) ) , $ this -> filterUrl ( [ 'model' => $ this -> model ] ) , Str :: singular ( $ controller -> title ( ) ) ) ; }
Format the model name by translating it through the controllers's defined
title

@return string HTML
Format the model name by translating it through the controllers s defined title