Skip to content

Commit

Permalink
add receivesBroadcastNotificationsOn
Browse files Browse the repository at this point in the history
  • Loading branch information
Bagas Udi Sahsangka committed Sep 18, 2021
1 parent 4668d95 commit 7c3d529
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions app/Models/AreaParkir.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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';
}
}

0 comments on commit 7c3d529

Please sign in to comment.