D
D
denis_213213212020-04-26 16:40:56
Laravel
denis_21321321, 2020-04-26 16:40:56

What is the purpose of the {{ __(text) }} template construct?

{{ __('E-Mail Address') }}, what is the difference if you just write 'E-Mail Address ?
I just didn't notice.
login.blade.php

<div class="form-group row">
                            <label for="email" class="col-md-4 col-form-label text-md-right">{{ __('E-Mail Address') }}</label>

                            <div class="col-md-6">
                                <input id="email" type="email" class="form-control @error('email') is-invalid @enderror" name="email" value="{{ old('email') }}" required autocomplete="email" autofocus>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JhaoDa, 2020-04-26
@denis_21321321

You have no idea how much you can learn if you start reading the documentation .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question