Shortcodes in your Laravel App
In this short video we’ll show you how to inject code into your views using Middleware. You can create a shortcode in your view files and replace it with anything you would like using Middleware.
This will come in handy if you release a product and don’t want to dynamically change content in your views from a shortcode.
source