public function __construct($content, $title = '', $style = 'danger') { $this->content = (string) $content; $this->title = $title ?: trans('admin::lang.alert'); $this->style = $style; }