public function title(string $title = null): Htmlable
    {
        $page = Paginator::resolveCurrentPage();

        $data = [
            'site' => ['name' => $this->site],
            'page' => ['title' => $title, 'number' => $page],
        ];

        $data['site']['name'] = $this->getHtmlTitleFormatForSite($data);

        $output = $this->getHtmlTitleFormatForPage($data);

        return $this->html->create('title', trim($output));
    }
public function title(string $title = null): Htmlable
    {
        $page = Paginator::resolveCurrentPage();

        $data = [
            'site' => ['name' => $this->site],
            'page' => ['title' => $title, 'number' => $page],
        ];

        $data['site']['name'] = $this->getHtmlTitleFormatForSite($data);

        $output = $this->getHtmlTitleFormatForPage($data);

        return $this->html->create('title', trim($output));
    }
public function title ( string $ title = null ) : Htmlable { $ page = Paginator :: resolveCurrentPage ( ) ; $ data = [ 'site' => [ 'name' => $ this -> site ] , 'page' => [ 'title' => $ title , 'number' => $ page ] , ] ; $ data [ 'site' ] [ 'name' ] = $ this -> getHtmlTitleFormatForSite ( $ data ) ; $ output = $ this -> getHtmlTitleFormatForPage ( $ data ) ; return $ this -> html -> create ( 'title' , trim ( $ output ) ) ; }
Create the title.

@param  string|null  $title

@return \Illuminate\Contracts\Support\Htmlable
Create the title .