Laravel Community Tools by Tighten

Tag "4.1" tricks

72 tricks
Change the created_at, updated_at and deleted_at column names (deleted_at not working @ Laravel 4.2)
seriousfre... 11 years ago 15937
4.1
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 10311
In case you want to access Route parameters outside controller, you can access current Route object and extract parameters from there.
YOzaz 11 years ago 21838
4.1
‍ക്ക് പരിക്കേറ്റിട്ടുണ്ട്. മരണസംഖ
Bribin 11 years ago 0
This snippet will explain how to use environment variables to configure your environment. Blog post: http://dor.ky/laravel-homestead-add-enviroment-variables-to-nginx/
ssx 11 years ago 12905
4.1
I recently figured out that you can specify the columns that you want to select from an eager loaded relationship in Eloquent. I thought others might find this useful as I couldn't find much about this online!
stidges 11 years ago 42046
sometime we need to autocomplete one input area and based on the value of this input area we sometime populated a dynamic dropdown . I thought it worth sharing .
hassanjama... 11 years ago 35624
How to update many-to-many relationship
nihaoit 11 years ago 15088
I happened across a function in Laravel's Command class. This command is Command::table(); Have you ever wanted to build a table in the same fashion that the 'routes' command does? Well, this function is how to do it! I couldn't find any real documentation on the method so just had a quick tinker with it and figured out it's usage. Here is an example of how to use it. Hopefully this might give the function some exposure, because at the moment, the web is lacking any!
Azirius 11 years ago 9127