Laravel Community Tools by Tighten

Category "Routing" tricks

91 tricks
This example provides a quick and simple method to generate a hash for a model without saving a UUID/GUID to the database.
Donny5300 8 years ago 8231
This changed because before when using as and prefix in the same route would append both of them to your route name, so the prefix appending dropped in place of the as.
baqirfaroo... 9 years ago 6203
X-editable allows you to create editable elements on your page. It can be used with any engine (bootstrap, jquery-ui, jquery only) and includes both popup and inline modes. Let's have a quick look at implementing this in Laravel apps.
baqirfaroo... 9 years ago 13123
Laravel in insert udpate record..
Darshan Ma... 9 years ago 7802
An easy way to organize a large number of routes.
rcoble 9 years ago 6373
5.0
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 10 years ago 8832
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 10094
I made a filter for Laravel 5.0 , you can redirect non-www URLs to www URL and you don't need to write any difficult htaccess codes . Just put the filter in routes.php and use it for any Routes you want them to be with WWW . This snipped code is made by www.larabook.ir
hpakdaman 10 years ago 16636
1. create two route files routes.web.php and routes.api.php. 2. edit the RouteServiceProvider.php file to look like the code below: (Note: you can add as many routes as you want, just follow the same logic.)
Mahmoudz 10 years ago 42728
5.0