Rendering a View to a String | Laravel 5: Rendering Views to Strings and Returning View Responses With view
Sometimes it is useful to store the rendered contents of a view as a string for further processing. The following example demonstrates how to accomplish this using the view helper function: 1 $ welcomeViewContents = view ( ' welcome ' ) -> render...