From 1f4d2894edb9b6fb80bd7f09cba09641aba55e24 Mon Sep 17 00:00:00 2001 From: Loann Meignant Date: Tue, 14 Apr 2020 18:29:13 +0200 Subject: [PATCH] Modifying readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8f18bd7..bed1dc3 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ First, create a new notification or use an existing one : php artisan make:notification BMailNotification ``` -Next, add a public field 'id' to your class, which will be initialized in the constructor : +Next, add a public field '$id' to your class, which will be initialized in the constructor : ```bash public $id; @@ -70,7 +70,7 @@ Then, in the via method add : return [BMailChannel::class]; ``` -Then, create a toTemplate method, in which you specify your template fields : +Then, create a 'toTemplate()' method, in which you specify your template fields : ```bash public function toTemplate($notifiable) @@ -95,7 +95,7 @@ public function toTemplate($notifiable) } ``` -Finally, send a notification for a user in your controller: +Finally, send a notification for a user in your controller : ```bash User::find('user_id')->notify(new BMailNotification('template_id'));