質問編集履歴
3
内容を修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,12 +20,6 @@
|
|
20
20
|
|
21
21
|
|
22
22
|
|
23
|
-
##### 追記
|
24
|
-
|
25
|
-
formatに関する文を削除すると問題なくページが表示されることを確認いたしました。
|
26
|
-
|
27
|
-
|
28
|
-
|
29
23
|
### エラー内容
|
30
24
|
|
31
25
|
```
|
@@ -40,264 +34,18 @@
|
|
40
34
|
|
41
35
|
```
|
42
36
|
|
37
|
+
##### 問題となっているコード
|
38
|
+
|
39
|
+
こちらのコードを削除すると問題なくページが表示されることを確認しております。
|
43
40
|
|
44
41
|
|
45
|
-
### resources/views/users/show.blade.php
|
46
42
|
|
47
43
|
```
|
48
44
|
|
49
|
-
|
45
|
+
<div class="d-flex justify-content-end flex-grow-1">
|
50
46
|
|
51
|
-
|
52
|
-
|
53
|
-
@section('content')
|
54
|
-
|
55
|
-
<div class="container">
|
56
|
-
|
57
|
-
<div class="row justify-content-center">
|
58
|
-
|
59
|
-
<div class="col-md-8 mb-3">
|
60
|
-
|
61
|
-
<div class="card">
|
62
|
-
|
63
|
-
<div class="d-inline-flex">
|
64
|
-
|
65
|
-
<div class="p-3 d-flex flex-column">
|
66
|
-
|
67
|
-
<img src="{{ asset('storage/profile_image/' .$user->profile_image) }}" class="rounded-circle" width="100" height="100">
|
68
|
-
|
69
|
-
<div class="mt-3 d-flex flex-column">
|
70
|
-
|
71
|
-
<h4 class="mb-0 font-weight-bold">{{ $user->name }}</h4>
|
72
|
-
|
73
|
-
<span class="text-secondary">{{ $user->screen_name }}</span>
|
74
|
-
|
75
|
-
</div>
|
76
|
-
|
77
|
-
</div>
|
78
|
-
|
79
|
-
<div class="p-3 d-flex flex-column justify-content-between">
|
80
|
-
|
81
|
-
<div class="d-flex">
|
82
|
-
|
83
|
-
<div>
|
84
|
-
|
85
|
-
@if ($user->id === Auth::user()->id)
|
86
|
-
|
87
|
-
<a href="{{ url('users/' .$user->id .'/edit') }}" class="btn btn-primary">プロフィールを編集する</a>
|
88
|
-
|
89
|
-
@else
|
90
|
-
|
91
|
-
@if ($is_following)
|
92
|
-
|
93
|
-
<form action="{{ route('unfollow', ['id' => $user->id]) }}" method="POST" class="mb-2">
|
94
|
-
|
95
|
-
{{ csrf_field() }}
|
96
|
-
|
97
|
-
{{ method_field('DELETE') }}
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
<button type="submit" class="btn btn-danger">フォロー解除</button>
|
102
|
-
|
103
|
-
</form>
|
104
|
-
|
105
|
-
@else
|
106
|
-
|
107
|
-
<form action="{{ route('follow', ['id' => $user->id]) }}" method="POST" class="mb-2">
|
108
|
-
|
109
|
-
{{ csrf_field() }}
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
<button type="submit" class="btn btn-primary">フォローする</button>
|
114
|
-
|
115
|
-
</form>
|
116
|
-
|
117
|
-
@endif
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
@if ($is_followed)
|
122
|
-
|
123
|
-
<span class="mt-2 px-1 bg-secondary text-light">フォローされています</span>
|
124
|
-
|
125
|
-
@endif
|
126
|
-
|
127
|
-
@endif
|
128
|
-
|
129
|
-
</div>
|
130
|
-
|
131
|
-
</div>
|
132
|
-
|
133
|
-
<div class="d-flex justify-content-end">
|
134
|
-
|
135
|
-
<div class="p-2 d-flex flex-column align-items-center">
|
136
|
-
|
137
|
-
<p class="font-weight-bold">ツイート数</p>
|
138
|
-
|
139
|
-
<span>{{ $share_count }}</span>
|
140
|
-
|
141
|
-
</div>
|
142
|
-
|
143
|
-
<div class="p-2 d-flex flex-column align-items-center">
|
144
|
-
|
145
|
-
<p class="font-weight-bold">フォロー数</p>
|
146
|
-
|
147
|
-
<span>{{ $follow_count }}</span>
|
148
|
-
|
149
|
-
</div>
|
150
|
-
|
151
|
-
<div class="p-2 d-flex flex-column align-items-center">
|
152
|
-
|
153
|
-
<p class="font-weight-bold">フォロワー数</p>
|
154
|
-
|
155
|
-
<span>{{ $follower_count }}</span>
|
156
|
-
|
157
|
-
</div>
|
158
|
-
|
159
|
-
</div>
|
160
|
-
|
161
|
-
</div>
|
162
|
-
|
163
|
-
</div>
|
164
|
-
|
165
|
-
</div>
|
166
|
-
|
167
|
-
</div>
|
168
|
-
|
169
|
-
@if (isset($timelines))
|
170
|
-
|
171
|
-
@foreach ($timelines as $timeline)
|
172
|
-
|
173
|
-
<div class="col-md-8 mb-3">
|
174
|
-
|
175
|
-
<div class="card">
|
176
|
-
|
177
|
-
<div class="card-haeder p-3 w-100 d-flex">
|
178
|
-
|
179
|
-
<img src="{{ asset('storage/profile_image/' .$user->profile_image) }}" class="rounded-circle" width="50" height="50">
|
180
|
-
|
181
|
-
<div class="ml-2 d-flex flex-column flex-grow-1">
|
182
|
-
|
183
|
-
<p class="mb-0">{{ $timeline->user->name }}</p>
|
184
|
-
|
185
|
-
<a href="{{ url('users/' .$timeline->user->id) }}" class="text-secondary">{{ $timeline->user->screen_name }}</a>
|
186
|
-
|
187
|
-
</div>
|
188
|
-
|
189
|
-
<div class="d-flex justify-content-end flex-grow-1">
|
190
|
-
|
191
|
-
|
47
|
+
<p class="mb-0 text-secondary">{{ $timeline->created_at->format('Y-m-d H:i') }}</p>
|
192
|
-
|
193
|
-
</div>
|
194
|
-
|
195
|
-
</div>
|
196
|
-
|
197
|
-
<div class="card-body">
|
198
|
-
|
199
|
-
{{ $timeline->text }}
|
200
|
-
|
201
|
-
</div>
|
202
|
-
|
203
|
-
<div class="card-footer py-1 d-flex justify-content-end bg-white">
|
204
|
-
|
205
|
-
@if ($timeline->user->id === Auth::user()->id)
|
206
|
-
|
207
|
-
<div class="dropdown mr-3 d-flex align-items-center">
|
208
|
-
|
209
|
-
<a href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
210
|
-
|
211
|
-
<i class="fas fa-ellipsis-v fa-fw"></i>
|
212
|
-
|
213
|
-
</a>
|
214
|
-
|
215
|
-
<div class="dropdown-menu" aria-labelledby="dropdownMenuLink">
|
216
|
-
|
217
|
-
<form method="POST" action="{{ url('shares/' .$timeline->id) }}" class="mb-0">
|
218
|
-
|
219
|
-
@csrf
|
220
|
-
|
221
|
-
@method('DELETE')
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
<a href="{{ url('shares/' .$timeline->id .'/edit') }}" class="dropdown-item">編集</a>
|
226
|
-
|
227
|
-
<button type="submit" class="dropdown-item del-btn">削除</button>
|
228
|
-
|
229
|
-
</form>
|
230
|
-
|
231
|
-
</div>
|
232
|
-
|
233
|
-
</div>
|
234
|
-
|
235
|
-
@endif
|
236
|
-
|
237
|
-
<div class="mr-3 d-flex align-items-center">
|
238
|
-
|
239
|
-
<a href="{{ url('shares/' .$timeline->id) }}"><i class="far fa-comment fa-fw"></i></a>
|
240
|
-
|
241
|
-
<p class="mb-0 text-secondary">{{ count($timeline->comments) }}</p>
|
242
|
-
|
243
|
-
</div>
|
244
|
-
|
245
|
-
<div class="d-flex align-items-center">
|
246
|
-
|
247
|
-
@if (!in_array(Auth::user()->id, array_column($timeline->favorites->toArray(), 'user_id'), TRUE))
|
248
|
-
|
249
|
-
<form method="POST" action="{{ url('favorites/') }}" class="mb-0">
|
250
|
-
|
251
|
-
@csrf
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
<input type="hidden" name="share_id" value="{{ $timeline->id }}">
|
256
|
-
|
257
|
-
<button type="submit" class="btn p-0 border-0 text-primary"><i class="far fa-heart fa-fw"></i></button>
|
258
|
-
|
259
|
-
</form>
|
260
|
-
|
261
|
-
@else
|
262
|
-
|
263
|
-
<form method="POST"action="{{ url('favorites/' .array_column($timeline->favorites->toArray(), 'id', 'user_id')[Auth::user()->id]) }}" class="mb-0">
|
264
|
-
|
265
|
-
@csrf
|
266
|
-
|
267
|
-
@method('DELETE')
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
<button type="submit" class="btn p-0 border-0 text-danger"><i class="fas fa-heart fa-fw"></i></button>
|
272
|
-
|
273
|
-
</form>
|
274
|
-
|
275
|
-
@endif
|
276
|
-
|
277
|
-
<p class="mb-0 text-secondary">{{ count($timeline->favorites) }}</p>
|
278
|
-
|
279
|
-
</div>
|
280
|
-
|
281
|
-
</div>
|
282
|
-
|
283
|
-
</div>
|
284
|
-
|
285
|
-
</div>
|
286
|
-
|
287
|
-
@endforeach
|
288
|
-
|
289
|
-
@endif
|
290
|
-
|
291
|
-
</div>
|
292
|
-
|
293
|
-
<div class="my-4 d-flex justify-content-center">
|
294
|
-
|
295
|
-
{{ $timelines->links() }}
|
296
|
-
|
297
|
-
</div>
|
298
48
|
|
299
49
|
</div>
|
300
50
|
|
301
|
-
@endsection
|
302
|
-
|
303
51
|
```
|
2
追記の編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
##### 追記
|
24
24
|
|
25
|
-
formatに関する文を削除すると問題なくページが表示されること
|
25
|
+
formatに関する文を削除すると問題なくページが表示されることを確認いたしました。
|
26
26
|
|
27
27
|
|
28
28
|
|
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,6 +20,12 @@
|
|
20
20
|
|
21
21
|
|
22
22
|
|
23
|
+
##### 追記
|
24
|
+
|
25
|
+
formatに関する文を削除すると問題なくページが表示されることは確認いたしました。
|
26
|
+
|
27
|
+
|
28
|
+
|
23
29
|
### エラー内容
|
24
30
|
|
25
31
|
```
|