English 中文(简体)
家庭blade.php在左边形成标志
原标题:home.blade.php form login on left

家庭lade中的标识仍被遗忘,我需要把它放在网页的中心,才能帮助我? 整个观点都位于存放处。

我用电网和风格进行了尝试,但失败了,这是对phpvms7的看法。

感谢答辩人

https://github.com/Blackedsoul/ItaViews“rel=“nofollow noreferer”>:

@extends( app )
@section( title , __( home.welcome.title ))
@section( content )
  <div class="form">
    <h1>@lang( common.login )</h1>
    @if(Auth::check())
    {{-- Itera sugli utenti solo se l utente è autenticato --}}
    @foreach($users as $user)
    <!-- Codice per visualizzare gli utenti autenticati -->
    @endforeach
    @else
    <div class="card">
      <div class="card-body">
        <form method="POST" action="{{ route( login ) }}">
           <div class="form-group" style="max-width: 100%;">>
            <label for="email">@lang( common.email )</label>
            <input type="email" name="email" id="email" class="form-control" required>
          </div>
          <div class="form-group">
            <label for="password">@lang( Password )</label>
            <input type="password" name="password" id="password" class="form-control" required>
          </div>
          <button type="submit" class="btn btn-primary btn-block">@lang( common.login )</button>
        </form>
      </div>
    </div>
    @endif
  </div>
</div>
@endsection

https://i.stack.imgur.com/FfzZe.png”rel=“nofollow noreferer”>page

问题回答

使用诱杀装置的用途类别

因此,在您的主编中添加这一点。

<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">

你们的法典应当这样看:

@extends( app )
@section( title , __( home.welcome.title ))
@section( content )
  <div class="form d-flex justify-content-center align-items-center" style="height: 100vh;">
    <div class="card">
      <div class="card-body">
        <h1 class="text-center">@lang( common.login )</h1>
        @if(Auth::check())
          {{-- Itera sugli utenti solo se l utente è autenticato --}}
          @foreach($users as $user)
            <!-- Codice per visualizzare gli utenti autenticati -->
          @endforeach
        @else
          <form method="POST" action="{{ route( login ) }}">
            <div class="form-group">
              <label for="email">@lang( common.email )</label>
              <input type="email" name="email" id="email" class="form-control" required>
            </div>
            <div class="form-group">
              <label for="password">@lang( Password )</label>
              <input type="password" name="password" id="password" class="form-control" required>
            </div>
            <button type="submit" class="btn btn-primary btn-block">@lang( common.login )</button>
          </form>
        @endif
      </div>
    </div>
  </div>
@endsection




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签