Preparing for a Laravel or PHP backend interview at a product company or a good service company? This is the full kit I'd want before the interview: real questions, answers you can say out loud, and coding rounds with solutions that actually run.
What's inside (42-page PDF + code folder)
• 120 interview Q&A: 40 junior, 45 mid-level and 35 senior. Each answer is short enough to say in 60-90 seconds and is tagged by topic:
• Eloquent depth and N+1, eager-load limits, createOrFirst vs firstOrCreate, custom casts, enums
• Queues and Horizon: unique jobs, job middleware, batches and chains, tries/timeouts/retry_after, idempotency
Caching: key design, stampede protection with Cache::flexible, Redis eviction pitfalls
• Events, service container and providers, contextual attributes, middleware
• Auth: Sanctum tokens and SPA auth, Passport, policies, IDOR-safe scoping
• Testing with Pest: fakes, datasets, time travel, arch tests
• Performance, security, API design, deployment and incident scenarios
• 3 machine-coding rounds, each with full solutions and Pest tests (14 tests, all passing on Laravel 12 + Pest 4):
• 1) Idempotent order placement with stock locking (no overselling, safe retries)
• 2) Payment webhook receiver (HMAC signature, duplicate deliveries, retry-safe job)
3) Slot booking with no double booking (unique index, policies, queued notification)
• System design for Laravel (2 cases): a sale-day order and GST-invoice pipeline, and a multi-tenant clinic SaaS, with a 45-minute answer structure
• HR and salary negotiation for India: CTC vs in-hand, notice-period buyouts, Chandigarh/Mohali vs Bangalore context, scripts for "expected CTC?" (guidance, not salary data)
• 7-day prep plan and a 1-page cheatsheet for the last hour
• Code folder: all round solutions as files, with a README to run them in a fresh Laravel 12 app
Who it's for
• PHP developers moving into Laravel backend roles
• Mid-level Laravel devs (2-5 years) targeting product companies
Senior devs facing system-design and "how would you run this in production" rounds
Format: PDF (A4, 42 pages) + ZIP with runnable PHP code. Written for Laravel 11/12 on PHP 8.2+; the concepts carry over to Laravel 13.
The 120 questions are new; the free Lite's 40 aren't repeated, and topics it touched (deploys, caching, race conditions) go deeper here. Start with the free Lite on my profile if you want a sample first.
Original material by a PHP/Laravel developer with 6 years' experience (Mohali). No job or salary outcome is promised; this is preparation material.