Laravel Community Tools by Tighten

Tag "macros" tricks

23 tricks
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.
jhauraw 11 years ago 24585
Separate routes for large applications into multiple smaller route partial files that are automatically loaded at runtime. Example 'app/routes.php' file.
jhauraw 12 years ago 15277
You can use this when you want to add a placeholder to your Form::selectRange or Form::selectMonth.
soffan 12 years ago 11763
I made a response macro that makes use of the JSend specification (http://labs.omniti.com/labs/jsend). UPDATE (2014-09-15): Added the setting of the content type.
icylace 12 years ago 7993
Sub Form, Cascade Form, Form Inside Form
sayasuhend... 12 years ago 9484
Creates a link for a US telephone number.
leek 12 years ago 9804
Response::xml macro
localdisk 12 years ago 32980
Generate navigation menu's that look clean using a custom class HTML::nav(); Automatically set active state, use conditions to display links, and optionally pass only one value for both url and link name if you want to type a little less
residualfl... 12 years ago 16069
This macro has the same signature than HTML::linkRoute() but wraps the hypertext link with <li></li>. If the current URL is the specified route, then <li> becomes "active" (<li class="active>...</li>). I use it to quickly build menus. Work well with Bootstrap.
Matt 12 years ago 8996