How to pass data to view in Laravel

You can use the following code to pass to view in Laravel