WIP booking updated feature

This commit is contained in:
Jack Goh
2018-08-29 09:38:55 +08:00
parent 88d704b368
commit dfe092f89c
8 changed files with 60 additions and 11 deletions
+7
View File
@@ -7,6 +7,7 @@ use Illuminate\Notifications\Notification;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Notifications\Messages\BroadcastMessage;
use App\Booking;
class BookingUpdated extends Notification
@@ -69,4 +70,10 @@ class BookingUpdated extends Notification
];
}
public function toBroadcast($notifiable)
{
return new BroadcastMessage([
'booking' => $this->booking,
]);
}
}