Blog

HomeLaravelLaravel add variable to blade template

Laravel add variable to blade template

@php($var = "whatever")

or

@php
    $var = "whatever"
@endphp

Written by

The author didnt add any Information to his profile yet