Skip to content

Commit

Permalink
Merge pull request #28 from mokhosh/remove-mail-docblocks
Browse files Browse the repository at this point in the history
remove unnecessary dockblocks
  • Loading branch information
freekmurze authored Feb 10, 2024
2 parents 9526a29 + a5d1ce4 commit 91747d6
Showing 1 changed file with 4 additions and 24 deletions.
28 changes: 4 additions & 24 deletions stubs/mail.stub
Original file line number Diff line number Diff line change
Expand Up @@ -13,46 +13,26 @@ class {{ class }} extends Mailable
{
use Queueable, SerializesModels;

/**
* Create a new message instance.
*
* @return void
*/
public function __construct()
public function __construct(): void
{
//
}

/**
* Get the message envelope.
*
* @return \Illuminate\Mail\Mailables\Envelope
*/
public function envelope()
public function envelope(): Envelope
{
return new Envelope(
subject: '{{ subject }}',
);
}

/**
* Get the message content definition.
*
* @return \Illuminate\Mail\Mailables\Content
*/
public function content()
public function content(): Content
{
return new Content(
markdown: 'markdown.view.name',
);
}

/**
* Get the attachments for the message.
*
* @return array
*/
public function attachments()
public function attachments(): array
{
return [];
}
Expand Down

0 comments on commit 91747d6

Please sign in to comment.