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 24092
Separate routes for large applications into multiple smaller route partial files that are automatically loaded at runtime. Example 'app/routes.php' file.
jhauraw 11 years ago 15021
You can use this when you want to add a placeholder to your Form::selectRange or Form::selectMonth.
soffan 11 years ago 11445
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 11 years ago 7797
Sub Form, Cascade Form, Form Inside Form
sayasuhend... 11 years ago 9257
Creates a link for a US telephone number.
leek 11 years ago 9610
Response::xml macro
localdisk 12 years ago 32607
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 15847
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 8728