Laravel Blade Template

 15 - Oct - 2021

What is blade file in laravel?

The laravel uses a powerful blade templating engine. The Blade view files use the .blade.php file extension and are typically stored in the resources/views directory.

Laravel create blade template layout

Create a master layout

Create an app.blade.php file in the resources/views/layouts directory.

Extend Laravel Layout

When extending the child view, that time we use the @extends Blade directive to inherit the child view. so you can see our home.blade.php file

@section('title', 'Home Page')

    <p>This is home page.</p>