@extends('layouts.app') @section('title', 'Sign up') @section('content') 利用者登録 @if ($viewdata['count'] == 0)
最初の利用者を登録してください。
@else
利用者を登録してください。
@endif @if (!empty($viewdata['errors']))
@foreach ($viewdata['errors'] as $error)

{{$error}}

@endforeach
@endif {{ Form::open(['route'=>'user.signup', 'method'=>'post'])}} @csrf {{ Form::label('username', 'ユーザ名', ['class' => '', ]) }} {{ Form::text('username', old('username'), ['placeholder' => 'ユーザ名'] ) }} {{ Form::label('password', 'パスワード', ['class' => '', ]) }} {{ Form::password('password', ['placeholder' => 'パスワード'] ) }} {{ Form::label('password2', 'パスワード', ['class' => '', ]) }} {{ Form::password('password2', ['placeholder' => '同じパスワードを入力'] ) }} {{ Form::submit('OK', ['class' => '',] ) }} {{ Form::close() }} @endsection