Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

krisi_gjika's avatar

krisi_gjika wrote a comment+100 XP

3mos ago

krisi_gjika's avatar

krisi_gjika wrote a reply+100 XP

5mos ago

What do you prefer to choose?

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's avatar

krisi_gjika wrote a reply+100 XP

5mos ago

Weird behavior with mysql

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's avatar

krisi_gjika liked a comment+100 XP

5mos ago

Getting all Sessions for given user from Redis

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.

https://github.com/willvincent/laravel-session-manager

krisi_gjika's avatar

krisi_gjika wrote a reply+100 XP

5mos ago

Laravel 12 – php artisan schedule:run causes periodic CPU spikes even with no scheduled tasks

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's avatar

krisi_gjika wrote a reply+100 XP

5mos ago

Is it required to code an entire module like a basic "Instant Messenger" for example in coding interviews as quick and accurate as possible?

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's avatar

krisi_gjika wrote a reply+100 XP

5mos ago

PHPStan Level 9 is killing me with DTOs — please roast my code (GitHub link inside)

you have a lot of code there, can you give a specific example you are having trouble with?

krisi_gjika's avatar

krisi_gjika wrote a reply+100 XP

5mos ago

PHPStan Level 9 is killing me with DTOs — please roast my code (GitHub link inside)

since you are using max level I really hope you are actually using larastan

krisi_gjika's avatar

krisi_gjika wrote a reply+100 XP

5mos ago

Should I only add complexity when there are issues with the Web System itself and start off simple and follow YAGNI and the Evolutionary Architecture?

(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