src/Notifications/Messages/TitleForSubject.php
public function title(string $title)
    {
        $name = config('app.name');

        if (empty($this->subject) && ! is_null($name)) {
            $this->subject(sprintf('[%s] %s', $name, $title));
        }

        $this->title = $title;

        return $this;
    }
public function title(string $title)
    {
        $name = config('app.name');

        if (empty($this->subject) && ! is_null($name)) {
            $this->subject(sprintf('[%s] %s', $name, $title));
        }

        $this->title = $title;

        return $this;
    }
public function title ( string $ title ) { $ name = config ( 'app.name' ) ; if ( empty ( $ this -> subject ) && ! is_null ( $ name ) ) { $ this -> subject ( sprintf ( '[%s] %s' , $ name , $ title ) ) ; } $ this -> title = $ title ; return $ this ; }
Get the title of the notification.

@param  string  $title

@return $this
Get the title of the notification .