Laravel Community Tools by Tighten

Popular tricks

458 tricks
FastAPI-inspired attribute-based routing to Laravel, simplifying the way routes, methods, and middlewares are defined. With this package, you can group routes using the FastAPIGroup attribute, set middleware directly on controllers, and specify HTTP methods and paths using attributes like FastAPI. This elegant approach allows developers to write cleaner, more organized, and maintainable route definitions, offering a powerful alternative to traditional Laravel routing.
mustafakha... 1 year ago 11634
Laravel State Management is a powerful, Redux-inspired solution for managing complex application state across services, requests, and caching layers. This package allows you to define shared state, easily persist and rehydrate data, and implement custom methods for state manipulation. With features like attribute casting, default state handling, and global store access, it provides a robust system for managing state across your Laravel app.
mustafakha... 1 year ago 11631
Here posts and categories have many to many relationships. the tricks are to fetch posts having a particular category attribute with categories details.
sanjok1988 5 years ago 11596
Previously, if you wanted to output a default value of a string in Blade you would put a condition that checks if the variable is set, otherwise defaults to some value. Now you can shorten the code by using the keyword "or" to specify what should be displayed if the variable is not set.
msurguy 12 years ago 11290
Get products count which are under sub categories of a parent category
Faridbabay... 4 years ago 11454
You can use this when you want to add a placeholder to your Form::selectRange or Form::selectMonth.
soffan 11 years ago 11443
Use this to generate a select box from a Eloquent Collection
xLink 12 years ago 11344
Sometimes, you may want to use different pagination types across your application. By default, Laravel will use the type specified in your app/config/view.php file, so you need to override this setting when you wish to use another type. Here is how to do so.
coucou 12 years ago 11347
This filter will prevent the route from having sessions enabled. Very useful for API calls and when you don't want sessions starting. Blog Post: http://dor.ky/laravel-prevent-sessions-for-routes-via-a-filter/
ssx 11 years ago 11349