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'));