Laravel Community Tools by Tighten

Popular tricks

458 tricks
Protect and Guard the HTTP Query String Parameters
nezarfadle 8 years ago 5209
This function will allow you to use human readable strings in place of integers when defining a time in seconds for caching, delays in jobs etc.
robjbrain 8 years ago 5137
Use Carbon lt() and gt() in the view to only show certain content if it's before or after a current date/time.
mattstauff... 7 years ago 4635
If you have a dynamically generated list from DB, like [1 => 'First option', 2 => 'Second option', ...] use the following Collection magic to build a full select list with 'Please choose..' option at the beginning and 'Other..' option at the end.
subdesign 8 years ago 4517
Sometimes you need to want tables columns as array while you editing the data, this will return a columns as array.
decipher 7 years ago 4393
Some functions, that help u get readable number. For example: 5145=>5,1K 3465645=>3,4M 4544353454=>4.5B 345,45=>345
andrii-chy... 8 years ago 4321
Sometimes you have a blade view, and you would like to render a certain HTML code only if your controller action is the one you passed in the directive.
laraning 8 years ago 4278
If you have a @yield directive, you know that you can pass a default content in the 2nd argument. What if you want to pass the content of a view?
laraning 8 years ago 3954