Laravel Community Tools by Tighten

Category "Templating" tricks

34 tricks
Laravel create country list
behzodjon 4 years ago 28852
for software different features and set Feature On/Off
saeedvir 6 years ago 10204
What if you want to use the @push blade directive but you don't want it to push twice the same content? For example, if you have a UI component that loads JS files and you want to reuse that component in the same view, so without this trick it will load twice your JS code from your different UI components.
laraning 8 years ago 7532
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
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 5253
Learn how to make a function to easily test which menu items should be marked as active depending on which page you are currently viewing in your browser. Add class of active to bootstrap menu items on different pages. Wherever you need to apply an active class ( or any other class ) in order to make a menu item active depending on which page you are currently viewing, or for any other sort of functionality you might need, this is the way you can do it with Laravel ( or plain PHP just a bit differently ) Watch the video on how to do it https://www.youtube.com/watch?v=E1oit3sd-7k
Novica89 9 years ago 8808
Learn how to power your Laravel application so that you are using ajax alongside Laravel pagination to fetch new content ( posts or whatever entity you need to display ), without refreshing the page. Video tutorial -> https://www.youtube.com/watch?v=3cmbkEQG8is
Novica89 10 years ago 10073
This Trait helps you to pass "variables" anywhere in controllers to "view" . you can use "$this->view->..." in controller to pass your variables , also you can use "$this->view()" same as "view()" helper with same functionality to render the view . ( this package is made by larabook.ir)
hpakdaman 10 years ago 14688
sending variable values to your multiple controller and accessing them in your blade template
wasiqaftab 10 years ago 9548