Rest assured there is no such setting.
What is in the view file ?
What editor have you used on the code?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm implementing Laravel 8 + Jetstream. Suddenly it's started adding <br /> tags throughout the generated html. Clearly I've changed a setting somewhere, but don't know what. Does anyone have any ideas?
For example, here's the page heading output by my application, creating using the layouts.app view (excuse the indenting - I wanted to copy and paste the actual generated html here):
<!-- Page Heading -->
<header class="bg-white shadow">
<div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8">
<h2 class="font-semibold text-xl text-gray-800 leading-tight"><br />
Dashboard<br />
</h2>
</div>
</header>
And here's the equivalent piece of code from the original installation of Laravel 8 + Jetstream:
<!-- Page Heading -->
<header class="bg-white shadow">
<div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8">
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
Dashboard
</h2>
</div>
</header>
As I previously commented, this seemed to be related to the expansion of slots in components. I have now resolved this by using {{{ $slot }}} instead of {{ $slot }}.
For example, in the Jetstream component template resources/views/vendor/jetstream/components/form-section.blade.php, if I have
@props(['submit'])
<div {{ $attributes->merge(['class' => 'row']) }}>
<x-jet-section-title>
<x-slot name="title">{{ $title }}</x-slot>
<x-slot name="description">{{ $description }}</x-slot>
</x-jet-section-title>
<div class="col-md-8">
<div class="card card-body">
<div class="container">
<form wire:submit.prevent="{{ $submit }}">
{{ $form }}
@if (isset($actions))
{{ $actions }}
@endif
</form>
</div>
</div>
</div>
</div>
which is called from resources/views/profile/update-profile-information-form.blade.php
<x-jet-form-section submit="updateProfileInformation">
<x-slot name="title">
{{ __('Profile Information') }}
</x-slot>
<x-slot name="description">
{{ __('Update your profile information and email address.') }}
</x-slot>
<x-slot name="form">
<!-- Name -->
<div class="form-group row">
<x-jet-label for="name" value="{{ __('Name') }}" />
<x-jet-input id="name" type="text" wire:model.defer="state.name" autocomplete="name" />
<x-jet-input-error for="name" />
</div>
<!-- Email -->
<div class="form-group row">
<x-jet-label for="email" value="{{ __('Email') }}" />
<x-jet-input id="email" type="email" wire:model.defer="state.email" />
<x-jet-input-error for="email" />
</div>
</x-slot>
<x-slot name="actions">
<x-jet-action-message on="saved" class="alert alert-success">
{{ __('Saved.') }}
</x-jet-action-message>
<div class="form-group row">
<div class="offset-md-4 col-md-6">
<x-jet-button wire:loading.attr="disabled" wire:target="photo">
{{ __('Save') }}
</x-jet-button>
</div>
</div>
</x-slot>
</x-jet-form-section>
This gives me line breaks in the form, rendering it as

However, if I change {{ $form }} to {{{ $form }}} and {{ $actions }} to {{{ $actions }}} in form-section.blade.php , I get the correct rendering, namely:

Please or to participate in this conversation.