Laravel Community Tools by Tighten

Recent tricks

459 tricks
This code shows how to trigger a Modal onScroll event to perform and assert against an ajax request
nezarfadle 9 years ago 9190
This example provides a quick and simple method to generate a hash for a model without saving a UUID/GUID to the database.
Donny5300 9 years ago 8465
This code snippet overrides DuskTestCase->createBrowsers method to allow HTML elements count assertion
nezarfadle 9 years ago 9339
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 7209
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 7746
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 7108
Automatically deleting related rows in Laravel (Eloquent ORM)
dickyeka 9 years ago 30799
I'm using a pivot table on the project I'm working with to filter category
dickyeka 9 years ago 9585
how can access all the posts belongs to a specific tag someone please explain.
Shashank 9 years ago 6756