DEV Community

Cover image for 3 Things Building MediTrack Taught Me About Laravel
Ibtisam Ali
Ibtisam Ali

Posted on

3 Things Building MediTrack Taught Me About Laravel

A few days ago, I shared MediTrack — a hospital management system I built with Laravel to manage doctors, patients, appointments, prescriptions, and lab tests. 🏥💻

While building it, I realized something important:

Laravel starts making a lot more sense when you stop only watching tutorials and start building real projects yourself.

MediTrack was one of the first projects where I had to think beyond basic CRUD pages and actually connect features together like a real system. Along the way, I learned lessons that honestly changed how I approach development now.

1️⃣ Database Design Matters A Lot More Than I Expected

At the beginning, I underestimated how important database planning really is.

I had:

  • doctors connected to appointments
  • patients connected to prescriptions
  • lab tests connected to patients

…and after a while I realized:

If the database structure is messy, everything else becomes messy too 😅

This project pushed me to properly learn Laravel relationships like:

  • hasMany
  • belongsTo

There were moments where I had to:

  • go back and restructure tables
  • rethink relationships
  • adjust migrations after realizing certain connections didn’t make sense

It was frustrating sometimes, but it taught me a very important lesson.

Big takeaway:
A good database structure makes the rest of the project much easier.

2️⃣ Authentication Is More Than Just a Login Page

Before building MediTrack, I used to think authentication mostly meant:

  • Login
  • Register
  • Logout

That was basically my understanding of it.

But once I added different roles like:

  • Admin
  • Doctor
  • Receptionist

…I realized there’s a whole different side to authentication and authorization.

Different users needed:

  • different dashboards
  • different permissions
  • protected routes
  • restricted access to certain features

This was where I started learning about:

  • Laravel middleware
  • route protection
  • backend validation

One thing this project taught me very quickly is:

⚠️ Never rely only on the frontend for security.

At first, I focused too much on hiding buttons or pages in the UI, but later I understood that real protection happens on the backend.

Big takeaway:
Security and organization go hand in hand.

3️⃣ Real Projects Teach More Than Tutorials 🚀

Tutorials definitely helped me understand the basics of Laravel.

But MediTrack was where things became real.

There were moments where:

  • features randomly stopped working
  • database queries returned incorrect data
  • UI sections broke after tiny changes
  • debugging took much longer than expected 😭

And unlike tutorials, there wasn’t always a step-by-step solution waiting for me.

I had to:

  • search documentation
  • troubleshoot problems
  • test multiple fixes
  • slowly figure things out myself

That process was difficult sometimes, but honestly, it’s also where I learned the most.

Real projects force you to learn:

  • how to organize your code
  • how systems connect together
  • how to debug properly
  • how to stay patient when things break

And I think that’s where real growth starts happening.

Big takeaway:
Building a real project teaches you how to think like a developer, not just how to follow instructions.

🎯Final Thoughts

MediTrack still has a long way to go, and there are many features I still want to improve.

But building it taught me far more than staying inside small tutorial projects ever could.

Laravel feels much less intimidating to me now because I’ve actually used it to solve real problems step by step.

So if you’re currently learning Laravel or web development in general, my advice is simple:

👉 Start building projects early — even if they’re imperfect.

You’ll learn much more from debugging your own mistakes than from endlessly watching tutorials.

And honestly, that’s been one of the most rewarding parts of this journey for me so far. 💙

💬** I want to ask you— what’s a project that taught you the most while learning development?**

Top comments (0)