Laravel Community Tools by Tighten

Popular tricks

458 tricks
if you need to make a single ton class and you need to access that in your whole application do that in laravel 5
wasiqaftab 10 years ago 7740
replace this in the start/global.php file:
Mahmoudz 10 years ago 7723
One file for all routes is bad idea. For simplify this, look this snippets.
sr2ds 7 years ago 7681
4.2
When I was testing some code I wanted to check if some variable in a JSON column was updated. I was thinking about a LIKE query but when I digged into Laravel's code I saw the following possibility. After all it was pretty obvious because you can do this with normal queries as well, but I still wanted to share this solution.
MrAtiebati... 9 years ago 7627
A simple and easy setup laravel log file reader.
haruncpi 6 years ago 7640
In some cases Netshell/Paypal throws error "Class Paypal does not exist". In my case on ubuntu/php7/nginx (on windows with apache is ok). So here is simple workaround
escapeboy 10 years ago 7617
There are three components to generating a Facade: 1 - The wanna be Facade Class, (the class that needs to become a facade). 2 - The Facade required Class, (which tells Laravel which registered class it pertains to) 3 - A Service Provider, (which registers the Facade class in the App container)
Mahmoudz 10 years ago 7594
Simple breadcrumb which does not require anything more than a blade. Clone it from github [https://github.com/sina-rzp/laravel-simple-breadcrumb].
sina-rzp 9 years ago 7586
DRY (Don’t Repeat Yourself) is a key principle in software engineering. It simply states that one should not reinvent the wheel while you are writing any application. If you have written some PHP application earlier, you will find that you are reinventing the wheel again and again to write the same process, like User Authentication, Database Management, Mailing Service, Validation System, etc. However, PHP now has effective and mature frameworks in hand that can perform nearly all the basic processes as stated above with their core. In fact, if you are smart enough, only then you will cherry pick the components from other frameworks like Zend, Laravel, Symfony, etc. This is the most hectic phase where you need to keep the dependencies of the required components, or else you will create a huge mess. Here are complete tutorial: http://www.cloudways.com/blog/composer-with-laravel/
wajidstack 10 years ago 7559