Lessons:24Length:2.5 hours
  • Overview
  • Transcript

3.4 Asking Questions on the Home Page

Let’s now allow our users to ask their questions. On our home page we’ll detect whether the user is logged in and if they are we’ll display an ask a question form and if they are not logged in we’ll ask them to login first. Along the way we’ll also learn about protecting our actions from unauthorized users by using Laravel’s filters. Let’s get started.