Laravel Community Tools by Tighten

Tag "view data" tricks

55 tricks
If your need usage DataTable with default configurations for many pages, do you can create your 'setter' for default table elements.
sr2ds 7 years ago 9741
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 7 years ago 14765
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 4660
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 4422
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 4536
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 5279
Remove tags in controller with excepts fields https://gist.github.com/oLDu67/10863c9f51064d1d9390016b28143f85
racibaz 8 years ago 10928
Laravel 5.4 Upload Image with Validation example
dave 8 years ago 21475
how can access all the posts belongs to a specific tag someone please explain.
Shashank 9 years ago 6534