nhayder
3 weeks ago

what is the laravel way to keep on Maximum of 5 records on DB

Posted 3 weeks ago by nhayder

Hi,

i'm storing user IP on database every time he logs in to his account, Clearly that might exceed hundreds of records for each user.

So as you might expect, Data should be limited to a certain number of records only (5 MAX records containing user ip is pretty good number).

So my question? What is the laravel way to keeping records up of 5 every time ????

Dos laravel have this type of functionality onboard, ????

Any ideas??

Please sign in or create an account to participate in this conversation.