You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That EmojisController.php file is probably the "dirtiest" file written by me! And I haven't touched it ever since I wrote it. We could do some cleaning it.
As for the migration and seeder, that sounds more professional and also more work while I don't see any benefits in it.
Is there a reason why you used a json string and then
json_decode
it to an array and then return the array as json response?We could easily create the array and return directly. Laravel would create a Json response automatically.
We can create a migration and seeder to store the emojis in database and cache it in Redis. Thoughts?
The text was updated successfully, but these errors were encountered: