This video requires a TekCasts subscription.

Early access is available to Yearly and Forever members.

This video will be released to all subscribers on Tue, Mar 17, 2026 .

Mar 17, 2026
26m:23s

Conditional Questions

Classification
Software Engineering | Frameworks | Laravel
Keywords
laravel | php

About This Episode:

Conditional questions are where surveys start to feel intelligent.

In this lesson, we extend our Laravel survey application to support conditional questions — questions that only appear when a parent question is answered with specific values. This is a common real-world requirement, and we implement it using clear data modeling and pragmatic UI decisions.

No Livewire. No magic. Just well-structured Laravel, PHP, and JavaScript working together.

What you’ll learn in this video:
- What conditional questions are and how they work
- Updating the view to show: required & conditional questions
- Restricting parent questions to those with allowed values
- Enhancing the data model (PHP + JavaScript)
- Building a UI to select a parent question
- Update UI to choose allowed parent values via multi-select
- Designing for future extensibility and maintainability

This video continues the Pragmatic Laravel philosophy: focus on clarity, intent, and long-term maintainability over shortcuts.

Coming Soon - We move beyond management features and into full application behavior:
- Survey invites and activation
- Email templates and delivery
- Dashboards, summaries, and reporting
- Background jobs and queues
- Data visualization and charts

💥 About the Series:
Pragmatic Laravel focuses on building real applications with Laravel — emphasizing clarity, maintainability, and thoughtful design decisions instead of shortcuts or magic.

#Laravel #PragmaticLaravel #PHP #CleanCode #TekCasts
Bob Cravens

Bob Cravens

Owner
TekFoundry
Wisconsin
United States
Short Bio:
Bob Cravens is a seasoned technology leader, software architect, and educator with a passion for empowering others through practical, real-world knowledge. As the founder of TekFoundry, Bob has dedicated his career to designing and delivering innovative software solutions that combine cutting-edge technology with elegant simplicity.

At TekCasts, Bob leverages over two decades of experience in software engineering, application architecture, and team leadership to create engaging, high-impact courses for developers and technology professionals. His instructional style is rooted in practical application, offering insights drawn from his extensive background in industries like medical devices and global technology consulting.

Bob’s expertise spans a variety of technologies and methodologies, including PHP/Laravel, FastAPI, and DevOps, as well as architecture best practices and team dynamics. Whether teaching foundational concepts or advanced strategies, he’s passionate about helping others turn complex challenges into streamlined solutions.

When not crafting elegant code or inspiring the next generation of tech innovators, Bob enjoys exploring the intersection of technology, business strategy, and creative problem-solving.