Laravel Community Tools by Tighten

Recent tricks

458 tricks
This example provides a quick and simple method to generate a hash for a model without saving a UUID/GUID to the database.
Donny5300 8 years ago 8245
This code snippet overrides DuskTestCase->createBrowsers method to allow HTML elements count assertion
nezarfadle 9 years ago 9110
I've written a package that allows you to connect with the last.fm API. With last.fm you can track which music you listen to. Through the API you can retrieve some cool statistics. Checkout https://github.com/barryvanveen/lastfm for the full readme and more examples.
barryvanve... 9 years ago 6980
5.0
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 7524
Laravel MySQL in default returns "SQLSTATE[HY000]: General error: 1366 Incorrect string value" error in emoji save... this error is because Laravel in default uses utf8 charset in MySQL, change your `config/database.php` like below and reset your migration instead putting out that error...
tuytoosh 9 years ago 6868
Automatically deleting related rows in Laravel (Eloquent ORM)
dickyeka 9 years ago 30481
I'm using a pivot table on the project I'm working with to filter category
dickyeka 9 years ago 9393
how can access all the posts belongs to a specific tag someone please explain.
Shashank 9 years ago 6540
I am using below method to get the logs from twilio account.
ssboopathi... 9 years ago 6539