krisi_gjika wrote a comment+100 XP
3mos ago
->paginate(20) makes ->limit(100) redundant
krisi_gjika wrote a reply+100 XP
5mos ago
Than bring it up to him in a nice way that you do not think it is necessary to implement repository pattern since eloquent already abstracts data retrieval. But if they are set on it, the reality is you can't do much about it. Use it like they suggest, while a bit overkill it's not a bad pattern to have under your tool belt.
krisi_gjika wrote a reply+100 XP
5mos ago
why do you need to make table engine as InnoDB for gifts table?
are the other tables not InnoDB as well? I don't think you can have foreign keys between different engines.
krisi_gjika liked a comment+100 XP
5mos ago
Sorry to raise this post from the dead, but I just published a package that makes this doable. It updates the DB (you control how often with a configurable throttle) so that redis sessions can be tracked/listed/destroyed.
User Agent enrichment happens automatically, and you can optionally install the MaxMind GeoLite2 DB and get Location detail too.
100% type coverage, test coverage, and phpstan at level 9.
krisi_gjika wrote a reply+100 XP
5mos ago
what is your session driver? do you have some specific setup where file or database deletes are expensive?
if you can't do anything else, you can at least use a driver that does auto clearing of old data for you.
krisi_gjika wrote a reply+100 XP
5mos ago
If you are applying for the role of "Laravel Developer" you are expected to know Laravel. Than depending on the required experience, you are expected to know things around the framework or ecosystem you will be working on.
Read the actual description and requirements of the position to have an understanding of what is expected of you. Example one position might expect you to also know some frontend framework, others might not care at all about that and expect you to know something else, it's not fixed.
krisi_gjika wrote a reply+100 XP
5mos ago
you have a lot of code there, can you give a specific example you are having trouble with?
krisi_gjika wrote a reply+100 XP
5mos ago
since you are using max level I really hope you are actually using larastan
krisi_gjika wrote a reply+100 XP
5mos ago
(like AWSs EC2, Cloud Formation, ELB, Auto-Scaling, ECS, EKS, IAM, RDS, S3 if using this Storage, etc...), most of these Services are a requirement not added when needed - all of that is optional tho, you don't need every AWS service to run a server. The cloud saved us so much money we can almost afford the team to run it mentality