Extending Blade Templates4:24 with Jonathan Barrios
In this section, we’ll use @extends to keep DRY and avoid repeating code on every page. We can extend all of the blades inside of treehouse.blade.php by using @extends('treehouse'). Blade extensions allow you to take an existing blade, or block of code, and extend it to add additional functionality to your application. In this section, you’ll be extending the treehouse.blade.php file when building views for each page of your app. Using @extends makes development much faster and also helps our code stay nice and DRY, short for Don’t Repeat Yourself.
You need to sign up for Treehouse in order to download course files.Sign up