DEV Community

Kamran Khan profile picture

Kamran Khan

Full-Stack Web Developer specializing in React.js and Laravel. I build dashboards, SaaS applications, and management systems for businesses worldwide. Open to freelance projects.

Location Lahore, Pakistan Joined Joined on  Personal website https://kamran1272.github.io/portfolio/ github website

Education

BS in Computer Software Engineering, Gomal University (2021–2025)

Work

Full-Stack Web Developer

My Dashboard fetches two things at once — and cancels both on unmount

My Dashboard fetches two things at once — and cancels both on unmount

Comments
2 min read

Want to connect with Kamran Khan?

Create an account to connect with Kamran Khan. You can also sign in below to proceed if you already have an account.

Already have an account? Sign in
My whole design system is one 30-line CSS file

My whole design system is one 30-line CSS file

Comments
2 min read
My login page shows the demo credentials — a starter kit has to be runnable in 60 seconds

My login page shows the demo credentials — a starter kit has to be runnable in 60 seconds

Comments
2 min read
My user payload includes a field my app can't set: why email_verified_at ships anyway

My user payload includes a field my app can't set: why email_verified_at ships anyway

Comments
2 min read
Three owners of one token: how my AuthContext, my axios client, and localStorage split auth state

Three owners of one token: how my AuthContext, my axios client, and localStorage split auth state

Comments
3 min read
My demo build is a config I never commit: the temporary vite setup behind the public preview

My demo build is a config I never commit: the temporary vite setup behind the public preview

Comments
2 min read
The sidebar hides the nav link you can't use

The sidebar hides the nav link you can't use

Comments
2 min read
My App.jsx is a route map, not a component

My App.jsx is a route map, not a component

Comments
2 min read
My routes file is my authorisation design

My routes file is my authorisation design

Comments
2 min read
My login error message never says which half was wrong

My login error message never says which half was wrong

Comments 2
1 min read
My register endpoint hardcodes role=user — the role field is never trusted from the client

My register endpoint hardcodes role=user — the role field is never trusted from the client

Comments 4
2 min read
My /me endpoint is my refresh button: restoring the session after every page reload

My /me endpoint is my refresh button: restoring the session after every page reload

Comments 2
2 min read
A 404 page is a product decision: why my starter kit ships a NotFound route

A 404 page is a product decision: why my starter kit ships a NotFound route

Comments
2 min read
My starter kit's setup is a handful of commands: the DX decisions I shipped in the README

My starter kit's setup is a handful of commands: the DX decisions I shipped in the README

Comments
2 min read
I never return the Eloquent model from my API: one UserResource for every user payload

I never return the Eloquent model from my API: one UserResource for every user payload

Comments
2 min read
One env var between localhost and production: how VITE_API_URL keeps my axios client deploy-proof

One env var between localhost and production: how VITE_API_URL keeps my axios client deploy-proof

Comments
2 min read
An admin can't delete their own account: two lines of defense in my users destroy endpoint

An admin can't delete their own account: two lines of defense in my users destroy endpoint

Comments
2 min read
My users table reads one pagination contract: paginate(15), withQueryString, and a React pager that trusts meta

My users table reads one pagination contract: paginate(15), withQueryString, and a React pager that trusts meta

Comments
2 min read
What I left out of my starter kit (no password reset, no subscriptions) — and why

What I left out of my starter kit (no password reset, no subscriptions) — and why

Comments
2 min read
My demo runs with no backend: a mock axios client that mirrors the real API

My demo runs with no backend: a mock axios client that mirrors the real API

Comments
2 min read
My React forms expect exactly one error shape: the 422 contract between Laravel and React

My React forms expect exactly one error shape: the 422 contract between Laravel and React

Comments
2 min read
UsersTable — the dumb component I copy into every admin panel

UsersTable — the dumb component I copy into every admin panel

Comments
2 min read
My register endpoint returns a token — one fewer round trip, one better UX

My register endpoint returns a token — one fewer round trip, one better UX

Comments 2
2 min read
The 8 tests I ship in a starter kit (and why I stop at 8)

The 8 tests I ship in a starter kit (and why I stop at 8)

Comments
2 min read
CORS is a backend decision, not a dev-server trick

CORS is a backend decision, not a dev-server trick

Comments
2 min read
The controller that does nothing: thin controllers via FormRequests, resources, and route-model bind

The controller that does nothing: thin controllers via FormRequests, resources, and route-model bind

Comments
3 min read
My API has exactly five failure shapes: the exception renders that keep every error JSON

My API has exactly five failure shapes: the exception renders that keep every error JSON

Comments
3 min read
sometimes, unique-except-self: the small validation rules that make admin edits safe

sometimes, unique-except-self: the small validation rules that make admin edits safe

Comments
3 min read
The spinner that kills the auth flash: a loading gate before every protected route

The spinner that kills the auth flash: a loading gate before every protected route

Comments
3 min read
A 15-line middleware and one database column: roles without the ceremony

A 15-line middleware and one database column: roles without the ceremony

Comments
3 min read
The logout loop nobody tests: treating session cleanup as a security feature

The logout loop nobody tests: treating session cleanup as a security feature

Comments
3 min read
Seeders that make your starter kit demoable in 30 seconds

Seeders that make your starter kit demoable in 30 seconds

1
Comments 2
3 min read
One stats endpoint, four numbers: designing dashboard metrics your frontend actually wants

One stats endpoint, four numbers: designing dashboard metrics your frontend actually wants

Comments
3 min read
The admin user-management loop: a full-stack CRUD walkthrough without the ceremony

The admin user-management loop: a full-stack CRUD walkthrough without the ceremony

Comments 1
4 min read
5 Laravel API conventions that save you a week on every project

5 Laravel API conventions that save you a week on every project

Comments
2 min read
React dashboard architecture: how I organize a real SaaS frontend

React dashboard architecture: how I organize a real SaaS frontend

1
Comments 1
2 min read
How I Structured My Laravel + React SaaS Starter Kit

How I Structured My Laravel + React SaaS Starter Kit

1
Comments
2 min read
loading...