for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Install GitHub App
<?php
namespace GiveBlood\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;
use GiveBlood\Modules\Campaign\Campaign;
class CampaignPublished extends Mailable implements ShouldQueue
{
use Queueable, SerializesModels;
protected $campaign;
/**
* Create a new message instance.
*
*/
public function __construct(Campaign $campaign)
$this->campaign = $campaign;
}
* Build the message.
* @return $this
public function build()
return $this->markdown('email.campaigns.published')
->with(
[
'CampTitle' => $this->campaign->title,
'CampOwner' => $this->campaign->owner,
'CampCreated' => $this->campaign->created_at->format('d-m-Y'),
'CampExpiration' => $this->campaign->expires->format('d-m-Y')
]
);