JustSteveKing

Steve McDougall

@JustSteveKing

Welcome to the realm of the API Guy. Led by a seasoned Consultant CTO, Software Engineer, Developer Advocate, and renowned Conference Speaker.

13 Answers 117 views

/ 255

What are you working on atm?

Right now I am working on a CLI app for API Testing, as well as a calendar application to use on demos. I also just finished building a file management API that uses configured disks from the database to manage files through a REST API

I have a few other secret things in the works too!

569 views

Hey Steve, how would you approach a <100ms response time for a laravel API?

I would start by monitoring the endpoint, figuring out how often it's called and how often the data changes. Then implement a cache strategy around it.

Alongside this, I would also go through the endpoint code to see how it can be improved, what needs to stay in the main thread, and what can be done to improve it's performance

671 views

?

Anonymously

Hello Steve,
I have admins and users table, but laravel 11 ships with sessions table with user_id foreign key. How may I have session recorded for admins as well since I have implemented multi auth guards for those separately.

You could either edit the migration, or an easy "hacky" way would be to just use the "user_id" column for your admins too - as it's not constrained to the users table directly.

476 views

?

Anonymously

I want to learn API development using laravel in depth. Can you suggest me fruitful and super handy resources?

There are quite a few out there that myself and others have created. However, I am currently working on a big refresh for this topic - so watch this space

117 views