Hello Devs, 

In this tutorial, we will learn Laravel Blade Include File With Data.

Even though the included view will inherit all data available in the parent view, you can also pass an array of additional data that should have been made available to the included view

Follow this step by step guide below, 


Example:

<!DOCTYPE html>
<html>
<head>
    <title>Laravel Blade Include File with Data Example - rathorji.in</title>
</head>
<body>
    @include('example.index', ['status' => 'Include file successfully'])
</body>
</html>


Include File:

resources/views/example/index.blade.php

<h1>{{ $status }}</h1>


May this example help you.