Skip to content
All posts

How this portfolio is built

A Laravel API with an admin panel, a Next.js frontend, and one rule: English at the root, other languages behind a prefix.

  • Laravel
  • Next.js
  • i18n

This site is also a sample of my work, so it is built the way I build client projects.

Two apps, one contract

  • Laravel stores the content and exposes a small public JSON API. The admin panel lives in the same app.
  • Next.js renders every page on the server and talks to the API with fetch, using short revalidation windows.

Languages

English is the default and has no prefix: /projects. Persian lives at /fa/projects and flips the whole layout to right-to-left. Content is stored per language in JSON columns, and the API falls back to English when a translation is missing.

Editing

Everything you see, including this post, is edited from the admin panel with one input per language.