Closed amdad closed 7 years ago
Hi @amdad
Yup, at the moment this component works for MySQL only. There's no DB-independent rand sorting function in Laravel 5.0. IIRC, they introduced one in 5.2.
The component code should be rewritten though so it won't throw exceptions with other DB drivers like I did here. I will add this in a couple of days and post an update.
October will be updated to L5.5. So this will be. Thanks for reply and plugin!
I didn't know that. Great news, thanks!
The issue is fixed, now RANDOM()
will be used for Sqlite, RAND()
for MySQL and other databases would just return non-random collection.
After October updates to 5.5 I will update the component to use DB-independent function.
Coooool! Thanks!
Thanks for very nice plugin.
When using RandomPhotos Component on SQLite.