Laravel Community Tools by Tighten

Tag "view data" tricks

54 tricks
If your need usage DataTable with default configurations for many pages, do you can create your 'setter' for default table elements.
sr2ds 8 years ago 10107
Instead of always having to include the button to open the modal, create the modal and all its contents, you can dynamically create the modal and load the route of the content you want to open in a very simple way. This allows you to still display the ever updated data without much effort in editing cases.
sr2ds 8 years ago 15187
Use Carbon lt() and gt() in the view to only show certain content if it's before or after a current date/time.
mattstauff... 8 years ago 5000
Sometimes you need to want tables columns as array while you editing the data, this will return a columns as array.
decipher 8 years ago 4723
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 4829
This helper will helps you to serve the assets which is last updated by the server. The Main aim of this helper to eliminate the cache of the assets we updated in server.
decipher 8 years ago 5648
Remove tags in controller with excepts fields https://gist.github.com/oLDu67/10863c9f51064d1d9390016b28143f85
racibaz 9 years ago 11384
Laravel 5.4 Upload Image with Validation example
dave 9 years ago 21939
how can access all the posts belongs to a specific tag someone please explain.
Shashank 9 years ago 6848