Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F120822830
PasswordReset.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
PasswordReset.php
View Options
<?php
namespace
App\Mail
;
use
App\VerificationCode
;
use
Illuminate\Bus\Queueable
;
use
Illuminate\Mail\Mailable
;
use
Illuminate\Queue\SerializesModels
;
class
PasswordReset
extends
Mailable
{
use
Queueable
;
use
SerializesModels
;
/** @var \App\VerificationCode A verification code object */
protected
$code
;
/**
* Create a new message instance.
*
* @param \App\VerificationCode A verification code object
*
* @return void
*/
public
function
__construct
(
VerificationCode
$code
)
{
$this
->
code
=
$code
;
}
/**
* Build the message.
*
* @return $this
*/
public
function
build
()
{
$href
=
sprintf
(
'%s/login/reset/%s-%s'
,
\config
(
'app.url'
),
$this
->
code
->
short_code
,
$this
->
code
->
code
);
$this
->
view
(
'emails.password_reset'
)
->
subject
(
__
(
'mail.passwordreset-subject'
,
[
'site'
=>
\config
(
'app.name'
)]))
->
with
([
'site'
=>
\config
(
'app.name'
),
'code'
=>
$this
->
code
->
code
,
'short_code'
=>
$this
->
code
->
short_code
,
'link'
=>
sprintf
(
'<a href="%s">%s</a>'
,
$href
,
$href
),
'username'
=>
$this
->
code
->
user
->
name
]);
return
$this
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Apr 24, 9:56 AM (1 w, 5 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18749856
Default Alt Text
PasswordReset.php (1 KB)
Attached To
Mode
rK kolab
Attached
Detach File
Event Timeline