Sometimes you want to paginate a table in an order, but when showing the items you need to reverse the order. Using the array_reverse on Paginator wont work, but if you use the getItems() its possible.
Hi, I got the example by Dastan Turysbekov (http://laravelsnippets.com/snippets/menu-activated) and changed a little bit.
It's a simple Macro to use with Active Menu.
You can use parameters and attributes as well.
Catch all routes and paths using the auth filter. A route validation method is added to the Users model called hasAccess($route) and returns true if the user has that route. If the user doesn't have the route the error message will inform of what access they are missing.
# Report():
The report() method allows us to log the raised exceptions or parse them to various error logging engines like the sentry. All this method does by default is passing the thrown exception to the base class where it is logged, but we are free to customize.