Balkan Open Code Initiative Balkan Open Code Initiative

Blogs

Insights, updates, and stories from our community.

Beginner Testing Strategies for Laravel

- Start with a testing pyramid: many unit tests, focused feature tests, minimal browser tests - Use Laravel’s built-in tools: Pest or PHPUnit, factories, fakes, and test databases - Keep tests deterministic: control time, config, and external calls - Isolate external systems with HTTP::fake, Mail::fake, Queue::fake, Notification::fake, Storage::fake - Run fast locally and in CI: parallel tests, database snapshots, and environment-specific config - Aim for pragmatic coverage on critical paths; measure and improve steadily - For teams using Node.js too: mirror concepts with Jest, supertest, nock, and similar patterns

0
Nov 10, 2025

Beginner Testing Strategies for Laravel

- Focus first on high-value feature tests around your core user flows, then layer unit tests for pure logic and integration tests with fakes for external services. - Use Laravel’s testing primitives (factories, RefreshDatabase, HTTP assertions, fakes for Mail/Queue/Storage/Events) to keep tests clear and deterministic. - Keep the suite fast: run in parallel, seed minimal data, avoid cross-test dependencies, and target a 3–5 minute CI runtime. - Enforce consistency: naming and folder structure, clear test intent, stable data builders, and a small set of helper utilities. - Integrate early with CI/CD, set practical coverage thresholds, and block merges on smoke tests. - For teams using Node.js too, mirror patterns with Jest/Vitest and consider API contract tests to keep both stacks aligned. - Start small, iterate weekly, and measure stability and coverage—not just test counts.

0
Nov 03, 2025

Beginner-Friendly Testing Strategies for Laravel

Start with a pragmatic test pyramid: many unit tests, fewer feature tests, and very few end-to-end tests. Use Laravel’s built-in testing helpers (Pest or PHPUnit), model factories, and fakes for mail, queues, and storage. Keep tests fast and deterministic with in-memory databases or transactions. Automate in CI, run tests in parallel, and track coverage trends (not perfection). Write tests that reflect business behavior, not implementation details. Grow coverage iteratively by testing new code first and backfilling critical paths.

0
Oct 27, 2025

Frontend with Laravel

A practical guide for frontend engineers working in Laravel-led teams. Choose the right integration model (Blade, Livewire, Inertia, or API-first), define stable data contracts with Resources, use Vite and modern Node.js tooling, and ship with strong performance, security, and observability. Keep interfaces resilient to backend changes, automate quality, and align on a predictable delivery workflow.

1
Oct 20, 2025

Frontend Engineering with Laravel

Laravel provides a stable, well-structured backend foundation that pairs cleanly with modern frontend stacks—whether Blade/Livewire, Inertia, or a Node.js SPA/SSR framework like Next.js, Nuxt, or Astro. As a frontend engineer, prioritize a clear integration model, reliable API contracts, secure auth (Sanctum), and a disciplined DX: Vite-based builds, TypeScript, schema validation, CI/CD, and observability. Keep data flows predictable, avoid N+1 pitfalls via backend coordination, and leverage Laravel’s resources, policies, caching, and broadcasting for performant, secure interfaces.

3
Oct 13, 2025

PHP or Laravel First?

Choose based on goals and timeline. If you need to ship quickly in a Laravel shop, start with a focused Laravel crash course while backfilling essential PHP. If you’re building long-term backend strength or aiming to master frameworks faster later, start with modern PHP fundamentals, then learn Laravel. Both paths converge; the difference is time-to-productivity vs depth. Think JavaScript→Express/Nest as a parallel: language first gives durability, framework first gives speed.

0
Oct 06, 2025

PHP and Laravel in the Modern Day

PHP 8.x and Laravel deliver a mature, performant, and developer-friendly stack fit for enterprise workloads. Modern PHP brings strong typing, performance optimizations, and robust tooling. Laravel adds a cohesive ecosystem for APIs, domain modeling, security, queues, and observability. Paired with Node.js for real-time features, SSR, and modern front-end pipelines, teams can run reliable, scalable systems with clear ownership, predictable costs, and fast iteration.

1
Oct 05, 2025