Laravel Community Tools by Tighten

Popular tricks

458 tricks
The easy way to define Eloquent Global Scopes with https://github.com/jarektkaczyk/laravel-global-scope
jarektkacz... 10 years ago 8098
If your need run TDD on SQLite (this perfect performance if run on memory) and your migrations have most alter tables, probably you have a problems.
sr2ds 7 years ago 8075
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 10 years ago 8030
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 7942
Blade X is cool features in Laravel 7. To know more feature in Laravel 7 visit: http://bit.ly/laravel7
haruncpi 6 years ago 7999
Hi All, I am trying to run laraverl-tricks open source application locally, but for some reason it is not running locally If anybody successfully run this app, please let me know, Thanks all
l4friend 11 years ago 7994
4.0
blade extension that displays numbers in Farsi instead of Latin ( "۵" instead of "5").
reshadman 11 years ago 7964
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 7958
5.0
set custom table name for eloquent model
uniqueginu... 4 years ago 7943