質問編集履歴
4
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
難しいことをしているわけではありませんが、エラーが
|
1
|
+
---難しいことをしているわけではありませんが、エラーが直りません。
|
2
2
|
|
3
3
|
何かご教示頂けたら幸いです...。
|
4
4
|
|
3
route:list表示
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,6 +8,10 @@
|
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
+
![route:list](03010f718cd4bb87f25e2da82b3725ce.png)
|
12
|
+
|
13
|
+
|
14
|
+
|
11
15
|
```html
|
12
16
|
|
13
17
|
|
2
コード一覧の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,6 +4,148 @@
|
|
4
4
|
|
5
5
|
|
6
6
|
|
7
|
+
# 追記
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
```html
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
<!-- index.blade.php -->
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
@extends('layouts.app')
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
@section('content')
|
24
|
+
|
25
|
+
<div class="container">
|
26
|
+
|
27
|
+
<div class="row">
|
28
|
+
|
29
|
+
<div class="col-md-8 col-md-offset-2">
|
30
|
+
|
31
|
+
<div class="panel panel-default">
|
32
|
+
|
33
|
+
<div class="panel-heading">Dashboard</div>
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
<div class="panel-body">
|
38
|
+
|
39
|
+
Sample Text
|
40
|
+
|
41
|
+
</div>
|
42
|
+
|
43
|
+
</div>
|
44
|
+
|
45
|
+
</div>
|
46
|
+
|
47
|
+
</div>
|
48
|
+
|
49
|
+
</div>
|
50
|
+
|
51
|
+
@endsection
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
```
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
```html
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
<!-- create.blade.php -->
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
@extends('layouts.app')
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
@section('content')
|
72
|
+
|
73
|
+
<div id="main">
|
74
|
+
|
75
|
+
<form method="POST" action="{{ url('articles') }}" accept-charset="UTF-8">
|
76
|
+
|
77
|
+
<div class="create_form_area">
|
78
|
+
|
79
|
+
<select name="category">
|
80
|
+
|
81
|
+
<option value="general" selected="selected">General</option>
|
82
|
+
|
83
|
+
<option value="culture">Culture</option>
|
84
|
+
|
85
|
+
<option value="design">Design</option>
|
86
|
+
|
87
|
+
<option value="economics">Economics</option>
|
88
|
+
|
89
|
+
<option value="entertainment">Entertainment</option>
|
90
|
+
|
91
|
+
<option value="food">Food</option>
|
92
|
+
|
93
|
+
<option value="life style">Life Style</option>
|
94
|
+
|
95
|
+
<option value="politics">Politics</option>
|
96
|
+
|
97
|
+
<option value="romance">Romance</option>
|
98
|
+
|
99
|
+
<option value="study">Study</option>
|
100
|
+
|
101
|
+
<option value="technology">Technology</option>
|
102
|
+
|
103
|
+
<option value="travel">Travel</option>
|
104
|
+
|
105
|
+
<option value="work">Work</option>
|
106
|
+
|
107
|
+
</select>
|
108
|
+
|
109
|
+
@if (count($errors) > 0)
|
110
|
+
|
111
|
+
@foreach ($errors->all() as $error)
|
112
|
+
|
113
|
+
{{ $error }}
|
114
|
+
|
115
|
+
@endforeach
|
116
|
+
|
117
|
+
@endif
|
118
|
+
|
119
|
+
<input placeholder="Title (40 characters or less)" type="text" name="title" style="margin-top: 1em;">
|
120
|
+
|
121
|
+
<input placeholder="Image URL (Image URL must be an active URL) " type="text" name="image_url" style="margin-top: 1em;">
|
122
|
+
|
123
|
+
<textarea placeholder="Tell your story of abstract... (200 characters or less)" name="text" rows="6" style="margin-top: 1em;"></textarea>
|
124
|
+
|
125
|
+
<input type="hidden" name="_token" value="<?php echo csrf_token(); ?>">
|
126
|
+
|
127
|
+
<input type="submit" value="Publish" style="margin: 1.5em 0 3em 0; width: 100%;">
|
128
|
+
|
129
|
+
</div>
|
130
|
+
|
131
|
+
</form>
|
132
|
+
|
133
|
+
</div>
|
134
|
+
|
135
|
+
@endsection
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
```
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
# コード
|
146
|
+
|
147
|
+
|
148
|
+
|
7
149
|
```php
|
8
150
|
|
9
151
|
|
1
追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -114,6 +114,8 @@
|
|
114
114
|
|
115
115
|
・php artisan route:clear
|
116
116
|
|
117
|
+
・php artisan cache:clear
|
118
|
+
|
117
119
|
・ルーティング記述を```Route::resource('questions', 'QuestionsController');
|
118
120
|
|
119
121
|
```に変更
|