pass parameter to include laravel

    By: Manu
    2 years ago

    To pass parameters in include in laravel you can do this, Simply call the include statement and pass parameters like this


    @include('layouts.article', ['title' => "Here goes the title", 'content' => "And here goes the content which is 2nd parameter"])