If you are using the same template in a lot of places and might later need an easy way to switch out the template for a different one without having to go through all views that implement it or replacing the current template, then consider using a constant to pass this parameter.
Doing this will allow you to switch out your template for any other template at any time in nearly no time at all.
about using the CSRF filter in your forms. Often you will want to apply a filter to many routes. Instead of attaching the filter to each individual route, you can assign it to many routes at the same time as a group:
The URL rewriting in Windows IIS is via a configuration xml file located in the site root with the name of web.config. The code below abilita and does the same paper apache .htaccess, just copy the code below and paste it in your web.config file by saving it in the folder public / project, assuming you've directed your root directory to public /, everything should work fine!
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.
Simply add the following lines to ./app/start/global.php at the "Application Error Handler" - Section there is no need to touch the "CSRF Protection Filter" at all.
Until Taylor makes it part of Homestead, here's one way to add SSL support for your dev sites. Plenty of room for improvement, so please add your ideas. For example, generating the ssl certs in the loop, instead of including them.
A variation of http://www.laravel-tricks.com/tricks/column-selection-in-eager-loading
Credits: http://stackoverflow.com/questions/16994253/laravel-eager-loading-load-only-specific-columns
Warning: this trick does not work on many-to-many relations, see:
https://github.com/laravel/framework/issues/2966