Update ViewCollector.php for StringBladeCompiler
Update ViewCollector.php for StringBladeCompiler

This change is to support my StringBladeCompiler plugin.

Without the change the debugbar generates an error, "realpath () expects parameter 1 to be a valid path, object given"

This is because the path is an object when using the StringBladeCompler plugin instead of a template file path.

Thanks.
barryvdh/laravel-debugbar,barryvdh/laravel-debugbar