Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
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.
LINKS:
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Hugo Zaanen
11,897 Points1 Answer
-
El Mehdi Chemaa
730 Points1 Answer
-
Simon Smith
722 Points3 Answers
-
Jeffrey Perkinson
PHP Development Techdegree Graduate 14,474 Points0 Answers
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up