Skip to content

Instantly share code, notes, and snippets.

@msacar
Last active December 30, 2019 09:14
Show Gist options
  • Save msacar/8c9e4030e51bc79b3f51f7b6cea50587 to your computer and use it in GitHub Desktop.
Save msacar/8c9e4030e51bc79b3f51f7b6cea50587 to your computer and use it in GitHub Desktop.
<?php
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
class SubscriptionStarted extends Notification
{
use Queueable;
public function via($notifiable)
{
return [ 'mail' ];
}
public function toMail($notifiable)
{
return (new MailMessage)
->line('Merhaba Aboneliğiniz başlamıştır.')
->action('Hemen Kullanmaya Başla', url('/'))
->line('Teşekkürler !');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment