Update StringView.php

Updated for Laravel 5 support