Laravel Community Tools by Tighten

Popular tricks

458 tricks
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 11 years ago 10387
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 11 years ago 10326
for software different features and set Feature On/Off
saeedvir 6 years ago 10261
For those who don't know. These ways of code are equivalent.
egig 12 years ago 10225
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 10250
Creating a form macro is very easy and awesome for creating your own UI elements. The original downside I found was losing the automatic model binding from Form::model(). A user on StackOverflow helped solve the problem for me.
chadwithuh... 12 years ago 10196
Laravel 4 CSRF on all POST requests
localdisk 12 years ago 10134
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 8 years ago 10139
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 10121