| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class TechTipComment extends Notification |
||
| 11 | { |
||
| 12 | use Queueable; |
||
| 13 | |||
| 14 | protected $details; |
||
| 15 | |||
| 16 | // Constructor receives basic Tech Tip data |
||
| 17 | public function __construct($details) |
||
| 20 | } |
||
| 21 | |||
| 22 | // Notifications sent via dashboard notification |
||
| 23 | public function via($notifiable) |
||
| 24 | { |
||
| 25 | return ['database']; |
||
| 26 | } |
||
| 27 | |||
| 28 | // Email Notification |
||
| 29 | public function toMail($notifiable) |
||
| 30 | { |
||
| 31 | // return (new MailMessage) |
||
| 32 | // ->line('The introduction to the notification.') |
||
| 33 | // ->action('Notification Action', url('/')) |
||
| 34 | // ->line('Thank you for using our application!'); |
||
| 35 | } |
||
| 36 | |||
| 37 | // Dashboard Notification |
||
| 38 | public function toArray($notifiable) |
||
| 44 | ]; |
||
| 45 | } |
||
| 46 | } |
||
| 47 |