Inline image on Laravel 5

You probably know the  Response::inline()  method from Laravel 4.

Really useful for to show inline images and files, but this method is not longer available in Laravel 5 .

I’ve created the following function to get inline image on Laravel 5.

Add the following namespaces to your class:

Add the following function to your controller or internal class:

Finally call the function from your controller: