2020-01-21 09:59:10 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Mail;
|
|
|
|
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
|
|
use Illuminate\Mail\Mailable;
|
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
2021-06-29 03:18:52 +00:00
|
|
|
use App\Models\User;
|
2020-01-21 09:59:10 +00:00
|
|
|
|
2024-08-03 01:32:43 +00:00
|
|
|
class Test extends Mailable
|
2020-01-21 09:59:10 +00:00
|
|
|
{
|
2021-09-29 06:20:22 +00:00
|
|
|
use Queueable, SerializesModels;
|
2020-01-21 09:59:10 +00:00
|
|
|
|
2021-09-29 06:20:22 +00:00
|
|
|
public User $user;
|
2020-01-21 09:59:10 +00:00
|
|
|
|
2021-09-29 06:20:22 +00:00
|
|
|
/**
|
|
|
|
* Create a new message instance.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function __construct(User $o)
|
|
|
|
{
|
|
|
|
$this->user = $o;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Build the message.
|
|
|
|
*
|
|
|
|
* @return $this
|
|
|
|
*/
|
|
|
|
public function build()
|
|
|
|
{
|
|
|
|
return $this
|
2024-08-03 01:32:43 +00:00
|
|
|
->markdown('mail.test')
|
2021-09-29 06:20:22 +00:00
|
|
|
->subject('Just a test...')
|
|
|
|
->with([
|
|
|
|
'site'=>$this->user->site,
|
|
|
|
'user'=>$this->user,
|
|
|
|
]);
|
|
|
|
}
|
2022-09-29 02:16:08 +00:00
|
|
|
}
|