Laravel Community Tools by Tighten

Popular tricks

458 tricks
This snippet will help you to make autocomplete from the database. You will get more instruction about it https://bit.ly/2rFmUEW
haruncpi 6 years ago 8458
The easy way to define Eloquent Global Scopes with https://github.com/jarektkaczyk/laravel-global-scope
jarektkacz... 11 years ago 8462
Using Angular and Blade
Mahmoudz 11 years ago 8417
What if you want to use the @push blade directive but you don't want it to push twice the same content? For example, if you have a UI component that loads JS files and you want to reuse that component in the same view, so without this trick it will load twice your JS code from your different UI components.
laraning 8 years ago 8404
Usually you would use @section and @stop to pass data to a Blade section. When your data is limited to a short text like page title you could use the second argument of @section to pass that data.
msurguy 12 years ago 8368
This is not how I write code on a daily basis, I brought everything to one place JUST OF THE PURPOS OF demonstrating how this stuff work. And in this example they do work:
Mahmoudz 11 years ago 8411
set custom table name for eloquent model
uniqueginu... 5 years ago 8396
blade extension that displays numbers in Farsi instead of Latin ( "۵" instead of "5").
reshadman 12 years ago 8349
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 10 years ago 8325
5.0