Laravel Community Tools by Tighten

Popular tricks

458 tricks
This is a simple macro in case you need to loop through a bunch of elements, without the need to use a foreach{}. There's support for Bootstrap class names: if your template's class attribute includes col-?-?, then this macro will add a "clear" tag to the end of each row, and also add a "row" class to the wrapper. To do (in a future release): pagination, multiple devices col- classes support.
jplozano 12 years ago 10876
4.0
I like to set body id/class from within the child view (for css purposes). Previously I was passing this information to the view from the controller but decided I didn't like that, so I came up with this.
jwalton512 12 years ago 10879
SharpAPI AI Translator for Laravel Nova – the package that’s here to make your content translation smoother and smarter with the power of SharpAPI's Advanced Text Translator AI API and to leverage AI for Laravel. This package extends the already-awesome Spatie's laravel-translatable with a Nova action you can trigger from your resource’s edit or list views. Details at https://github.com/sharpapi/nova-ai-translator
makowskid 2 years ago 10778
for software different features and set Feature On/Off
saeedvir 7 years ago 10718
Laravel Cashier makes it easy to create subscription-based websites and collect money from customers. Passing an extra array to create() method allows passing data specific to Stripe's API along with creating a new subscription for the customer. To see which fields are supported check this section of Stripe's API: https://stripe.com/docs/api#create_customer
msurguy 12 years ago 10714
This query searches the data from the Table and also with its relation table columns dynamically.
Muzamil-kh... 5 years ago 10694
For those who don't know. These ways of code are equivalent.
egig 12 years ago 10605
Sometimes you want to render a partial without sharing all the scope. I often found that the scope inheritance between highly decoupled UI modules makes hard to find errors, because we end up using similar variable names in each module (using @include) Let me show you an example:
fedeisas 12 years ago 10638
This is how you delete/drop a database using Laravel. If you are not using MySQL you may replace or remove the backtick (`) sign.
harlekoy 9 years ago 10552