質問編集履歴

4

Route::get → post

2020/07/06 06:16

投稿

pup-ganbaru
pup-ganbaru

スコア29

test CHANGED
File without changes
test CHANGED
@@ -36,7 +36,7 @@
36
36
 
37
37
  ```
38
38
 
39
- Route::get('title/add,', 'TitleController@store');
39
+ Route::post('title/add,', 'TitleController@store');
40
40
 
41
41
  ```
42
42
 

3

タイトルに追記

2020/07/06 06:16

投稿

pup-ganbaru
pup-ganbaru

スコア29

test CHANGED
File without changes
test CHANGED
@@ -10,7 +10,9 @@
10
10
 
11
11
 
12
12
 
13
- ```TitleController.php
13
+ TitleController.php
14
+
15
+ ```
14
16
 
15
17
  public function store(Request $Request)
16
18
 
@@ -30,15 +32,17 @@
30
32
 
31
33
 
32
34
 
33
- ```web.php
35
+ web.php
36
+
37
+ ```
34
38
 
35
39
  Route::get('title/add,', 'TitleController@store');
36
40
 
37
41
  ```
38
42
 
43
+ add.blade.php
39
44
 
40
-
41
- ```add.blade.php
45
+ ```
42
46
 
43
47
  <h2>リスト追加</h2>
44
48
 
@@ -56,9 +60,9 @@
56
60
 
57
61
  ```
58
62
 
63
+ Actress.php
59
64
 
60
-
61
- ```Actress.php
65
+ ```
62
66
 
63
67
  <?php
64
68
 

2

タイトルに追記

2020/07/06 06:10

投稿

pup-ganbaru
pup-ganbaru

スコア29

test CHANGED
File without changes
test CHANGED
@@ -55,3 +55,31 @@
55
55
  </form>
56
56
 
57
57
  ```
58
+
59
+
60
+
61
+ ```Actress.php
62
+
63
+ <?php
64
+
65
+
66
+
67
+ namespace App;
68
+
69
+
70
+
71
+ use Illuminate\Database\Eloquent\Model;
72
+
73
+
74
+
75
+ class Actress extends Model
76
+
77
+ {
78
+
79
+ protected $table ='actresses';
80
+
81
+ protected $guarded = array('id');
82
+
83
+ }
84
+
85
+ ```

1

タイトルに追記

2020/07/06 06:08

投稿

pup-ganbaru
pup-ganbaru

スコア29

test CHANGED
@@ -1 +1 @@
1
- データベースにフォームからデータを追加できない
1
+ 【Laravel】【MySQL】データベースにフォームからデータを追加できない
test CHANGED
File without changes