File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 22
33namespace Arrilot \Widgets \Misc ;
44
5- use Illuminate \View \ Expression ;
5+ use Illuminate \Support \ HtmlString ;
66
77trait ViewExpressionTrait
88{
99 /**
10- * Convert a given html to View Expression object that was introduced in Laravel 5.1.
10+ * Convert a given html to HtmlString object that was introduced in Laravel 5.1.
1111 *
1212 * @param string $html
1313 *
14- * @return \Illuminate\View\Expression |string
14+ * @return \Illuminate\Support\HtmlString |string
1515 */
1616 protected function convertToViewExpression ($ html )
1717 {
18- if (interface_exists ('Illuminate\Contracts\Support\Htmlable ' ) && class_exists ('Illuminate\View\Expression ' )) {
19- return new Expression ($ html );
18+ if (interface_exists ('Illuminate\Contracts\Support\Htmlable ' ) && class_exists ('Illuminate\Support\HtmlString ' )) {
19+ return new HtmlString ($ html );
2020 }
2121
2222 return $ html ;
You can’t perform that action at this time.
0 commit comments