Laravel Community Tools by Tighten

Category "Debugging" tricks

36 tricks
Variable Dump Helper, a function to dump variables to the screen, in a nicely formatted manner. This is useful if you want to see the contents of your variable array. This is originally created by Mr. Joost van Veen. Source: https://gist.github.com/accent-interactive/3838495
kankuro 11 years ago 8197
In this example I use Monolog for logging user activity in my cms admin. Usage: add the following line to the controller's constructor: UserLog::write();
subdesign 11 years ago 33890
4.2
Simply add the following lines to ./app/start/global.php at the "Application Error Handler" - Section there is no need to touch the "CSRF Protection Filter" at all.
etenzy 11 years ago 21012
Sometimes hasColorSupport() in Symfony\Console..StreamOutput returns false even if there is color support, to make it explicitly know we must call this method before output eg. in fire()
hardevine 11 years ago 8240
Gives you the ability to log all events (your own and Laravels built in events)
clarkeash 11 years ago 14897
Whoops, looks like something went wrong.
yuran 11 years ago 21160
You can find it here as well: https://github.com/mousavian/laravel-4-custom-db-log or you can just simply do: 1. create logger.php in your "app" folder 2. edit "app\start\global.php" file (or local.php), and add this: 3. all logs will be at "app\storage\logs\query.log"
mousavian 11 years ago 23174
Hi guys, well let me share with you this trick that you may not know: isn't going to be great to use collection methods with your own array . well laravel make this simple , we can know turn our arrays to collections and interact with its just as we do with eloquent collection .
anouarabds... 11 years ago 14464
Get a real-time view of all the currently executing queries.
mcraz 11 years ago 27439