From 7c3d5292d2bfaad6e9fb92f91962578627f8f9e6 Mon Sep 17 00:00:00 2001 From: Bagas Udi Sahsangka Date: Sat, 18 Sep 2021 10:37:55 +0700 Subject: [PATCH] add receivesBroadcastNotificationsOn --- app/Models/AreaParkir.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/Models/AreaParkir.php b/app/Models/AreaParkir.php index 81062395..217b5638 100644 --- a/app/Models/AreaParkir.php +++ b/app/Models/AreaParkir.php @@ -3,9 +3,12 @@ namespace App\Models; use Illuminate\Database\Eloquent\Model; +use Illuminate\Notifications\Notifiable; class AreaParkir extends Model { + use Notifiable; + protected $fillable = [ 'nama', 'keterangan', @@ -17,4 +20,14 @@ class AreaParkir extends Model protected $casts = [ 'jenis_kendaraan' => 'json' ]; + + /** + * The channels the user receives notification broadcasts on. + * + * @return string + */ + public function receivesBroadcastNotificationsOn() + { + return 'notification'; + } }