laravel blade @php use variable code example
Example 1: laravel include with variable
@include('layouts.article', ['mainTitle' => "404, page not found", 'mainContent' => "sorry, but the requested page does not exist :("])
Example 2: blade set variable
@php ($i = 1)