如何在 Laravel 表单文本输入中添加静态文本?
How to add static text inside a Laravel form text input?
我想在 laravel 表单文本输入中添加静态文本。
我创建了一个自定义 slug 字段,我希望域在输入中显示为左对齐。我该怎么做?
{{ Form::label('slug', 'URL:') }}
{{ Form::text('slug', null, ['class' => 'form-control']) }}
这个 created by TheLuminor is exactly what I want but I cannot figure out how to do that with the Laravel form builder. I have also skimmed the Forms/HTML section of the Laravel docs 并没有找到与我的问题相关的任何内容。
试试这个
{{ Form::label('slug', 'URL:') }}
<div class="input-group">
{{ Form::text('slug', null, ['class' => 'form-control']) }}
<div class="input-group-append"><span class="input-group-text">@gmail.com</span></div>
</div>
我想在 laravel 表单文本输入中添加静态文本。
我创建了一个自定义 slug 字段,我希望域在输入中显示为左对齐。我该怎么做?
{{ Form::label('slug', 'URL:') }}
{{ Form::text('slug', null, ['class' => 'form-control']) }}
这个
试试这个
{{ Form::label('slug', 'URL:') }}
<div class="input-group">
{{ Form::text('slug', null, ['class' => 'form-control']) }}
<div class="input-group-append"><span class="input-group-text">@gmail.com</span></div>
</div>