If you want to use a custom Class (may be your own vendor or library) inside a view template, you just use it like any other places using the namespace. Like one of my templates has this in the top:
In this article you will find all the undocumented concepts of Laravel Validation Rules.
Laravel has added support for middleware parameter since version 5.1 . So it is nice that we can pass middleware parameter from Routes.php or from controller. Let’s see an example.
or in controller constructor
and in middleware handle function you can catch argument which is passed as mentioned below:
View original post 116 more words