laravel blade if session variable code example Example: get session blade {{ session()->get('name') }}