Laravel Community Tools by Tighten

Tag "5.0" tricks

75 tricks
cannot end a section without first starting one in new Laravel 5.3
shahmir811 9 years ago 11314
If you need to sprinkle in some caching without building a bunch of Repositories. I've found this base Model and Service Provider very helpful. For updates: https://gist.github.com/danrichards/de22efa41b533d81fa1ec15f42cf64f5
danrichard... 9 years ago 9562
Support multi languages JSON response
Mahmoudz 9 years ago 22977
5.0
This script is for generating copies of uploaded images in different sizes. In my case I created a custom Library folder and then created a class FileUploader and add all functions that deals with any image uploads.
yandine 9 years ago 8262
5.0
This code allows you to register additional package providers and aliases for different environments, similar to how it used to work in L4. While the most of local configuration in L5 can be done by .env files, you can't really separate dev packages that way. If you install a package with `composer require --dev` it will not be available in the production and if you forget to remove the providers from the app.php it will break everything. With this code you can have local/app.php config with package providers and aliases that will be merged with the main config, but only if you are in local env. It will also support using separate config for production/app.php or test/app.php (or any other environment name you use).
ivanhoe011 9 years ago 7927
5.0
This employs Eloquent's polymorphic relationships (https://laravel.com/docs/5.1/eloquent-relationships#polymorphic-relations) to provide a simple flat comment thread system.
Riari 9 years ago 12559
An easy way to organize a large number of routes.
rcoble 9 years ago 6364
5.0
If you want to use(or work with) another database in a section of your project use following steps... step 1. Create another connection in config/database.php step 2. Insert new connection info in .env file... step 3. Tell to laravel to use this new connection
tuytoosh 9 years ago 6982
This snippet will allow you to add to the request. Tested in Laravel 5.2
wolf 9 years ago 8468
5.0