Crear variable en Laravel Blade
@php
$i = 1
@endphp
Nipun
@php
$i = 1
@endphp
Route::get('/', function () {
return view('welcome', ['name' => 'Samantha']);
});