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, 


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

Include File:


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

May this example help you.