質問編集履歴
1
welcome.blade.php, register.blade.phpを追記しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -85,9 +85,76 @@
|
|
85
85
|
```
|
86
86
|
register.blade.php
|
87
87
|
```php
|
88
|
+
@extends('layouts.app')
|
89
|
+
|
90
|
+
@section('content')
|
91
|
+
<div class="text-center">
|
92
|
+
<h1>会員登録</h1>
|
93
|
+
</div>
|
94
|
+
|
95
|
+
<div class="row">
|
96
|
+
<div class="col-sm-6 offset-sm-3">
|
97
|
+
|
98
|
+
{!! Form::open(['route' => 'signup.post']) !!}
|
88
|
-
<div class="form-group">
|
99
|
+
<div class="form-group">
|
100
|
+
{!! Form::label('name', '氏名') !!}
|
101
|
+
{!! Form::text('name', old('name'), ['class' => 'form-control']) !!}
|
102
|
+
</div>
|
103
|
+
|
104
|
+
<div class="form-group">
|
105
|
+
{!! Form::label('email', 'メールアドレス') !!}
|
106
|
+
{!! Form::email('email', old('email'), ['class' => 'form-control']) !!}
|
107
|
+
</div>
|
108
|
+
|
109
|
+
<div class="form-group">
|
89
|
-
|
110
|
+
{!! Form::label('icon', 'アイコン') !!}
|
90
|
-
|
111
|
+
{!! Form::file('icon') !!}
|
91
|
-
</div>
|
112
|
+
</div>
|
113
|
+
|
114
|
+
<div class="form-group">
|
115
|
+
{!! Form::label('password', 'パスワード') !!}
|
116
|
+
{!! Form::password('password', ['class' => 'form-control']) !!}
|
117
|
+
</div>
|
118
|
+
|
119
|
+
<div class="form-group">
|
120
|
+
{!! Form::label('password_confirmation', 'パスワード(確認)') !!}
|
121
|
+
{!! Form::password('password_confirmation', ['class' => 'form-control']) !!}
|
122
|
+
</div>
|
123
|
+
|
124
|
+
{!! Form::submit('登録', ['class' => 'btn btn-primary btn-block']) !!}
|
125
|
+
{!! Form::close() !!}
|
126
|
+
</div>
|
127
|
+
</div>
|
128
|
+
@endsection
|
129
|
+
|
92
130
|
```
|
131
|
+
```php
|
132
|
+
@extends('layouts.app')
|
133
|
+
|
134
|
+
@section('content')
|
135
|
+
@if (Auth::check())
|
136
|
+
<div class="row">
|
137
|
+
<aside class="col-sm-4">
|
138
|
+
<div class="card">
|
139
|
+
<div class="card-header">
|
140
|
+
<h3 class="card-title">{{ Auth::user()->name }}</h3>
|
141
|
+
</div>
|
142
|
+
<div class="card-body">
|
143
|
+
<img src="{{Auth::user()->icon}}" width="150" height="150">
|
144
|
+
</div>
|
145
|
+
</div>
|
146
|
+
</aside>
|
147
|
+
</div>
|
148
|
+
@else
|
149
|
+
<div class="center-jumbotron">
|
150
|
+
<div class="text-center">
|
151
|
+
<h1>**************</h1>
|
152
|
+
<h3>**************</h3>
|
153
|
+
<p>{!! link_to_route('signup.get', '新規登録はこちら', [], ['class' => 'btn btn-lg btn-primary']) !!}</p>
|
154
|
+
|
155
|
+
</div>
|
156
|
+
</div>
|
157
|
+
@endif
|
158
|
+
@endsection
|
159
|
+
```
|
93
160
|
ファイルの種類が合っているのにエラーが発生してしまったのかがわかりません。わかる方がいらっしゃいましたらご回答よろしくお願いいたします。
|