質問編集履歴
1
全文の入力
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,11 +14,95 @@
|
|
14
14
|
|
15
15
|
```PHP
|
16
16
|
|
17
|
+
<?php
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
namespace App\Mail;
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
use App\Services\LineService;
|
26
|
+
|
27
|
+
use App\User;
|
28
|
+
|
29
|
+
use Illuminate\Bus\Queueable;
|
30
|
+
|
31
|
+
use Illuminate\Contracts\Queue\ShouldQueue;
|
32
|
+
|
33
|
+
use Illuminate\Mail\Mailable;
|
34
|
+
|
35
|
+
use Illuminate\Queue\SerializesModels;
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
class Request extends Mailable
|
40
|
+
|
41
|
+
{
|
42
|
+
|
43
|
+
use Queueable, SerializesModels;
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
/**
|
48
|
+
|
49
|
+
* @var User
|
50
|
+
|
51
|
+
*/
|
52
|
+
|
53
|
+
private $user;
|
54
|
+
|
55
|
+
/**
|
56
|
+
|
57
|
+
* @var LineService
|
58
|
+
|
59
|
+
*/
|
60
|
+
|
61
|
+
private $line;
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
/**
|
66
|
+
|
67
|
+
* Create a new message instance.
|
68
|
+
|
69
|
+
*
|
70
|
+
|
71
|
+
* @param User $user
|
72
|
+
|
73
|
+
*/
|
74
|
+
|
75
|
+
public function __construct(User $user)
|
76
|
+
|
77
|
+
{
|
78
|
+
|
79
|
+
$this->user = $user;
|
80
|
+
|
81
|
+
$this->line = new LineService();
|
82
|
+
|
83
|
+
}
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
/**
|
88
|
+
|
89
|
+
* Build the message.
|
90
|
+
|
91
|
+
*
|
92
|
+
|
93
|
+
* @return $this
|
94
|
+
|
95
|
+
*/
|
96
|
+
|
97
|
+
public function build()
|
98
|
+
|
99
|
+
{
|
100
|
+
|
17
101
|
$title = 'XXX';
|
18
102
|
|
19
103
|
$text = file_get_contents(resource_path('views/emails/request.blade.php'));
|
20
104
|
|
21
|
-
$url = route('re
|
105
|
+
$url = route('reservation.index');
|
22
106
|
|
23
107
|
|
24
108
|
|
@@ -34,7 +118,7 @@
|
|
34
118
|
|
35
119
|
return $this
|
36
120
|
|
37
|
-
->subject('【
|
121
|
+
->subject('【ikimasu】' . $title)
|
38
122
|
|
39
123
|
->text('emails.request', [
|
40
124
|
|
@@ -43,6 +127,10 @@
|
|
43
127
|
'url' => $url
|
44
128
|
|
45
129
|
]);
|
130
|
+
|
131
|
+
}
|
132
|
+
|
133
|
+
}
|
46
134
|
|
47
135
|
|
48
136
|
|