Menu

## CheckPushNotification extends Command
in package
uses SendPushNotification

CheckPushNotification.php : 9

### Table of Contents

#### Properties

$description : string
  The console command description.
$signature : mixed

#### Methods

__construct() : void
  Create a new command instance.
handle() : mixed
  Execute the console command.
sendNotification() : DownstreamResponse|null
  Send a push notification to a user via FCM.
sendTeacherNotification() : DownstreamResponse|null
  Send a teacher-specific push notification via FCM.

### Properties

#### $description

CheckPushNotification.php : 23

The console command description.

`protected string $description = 'Create a Test Notification'`

#### $signature

CheckPushNotification.php : 17
`protected mixed $signature = 'gego:pushnotification'`

### Methods

#### __construct()

CheckPushNotification.php : 29

Create a new command instance.

`public __construct() : void`

#### handle()

CheckPushNotification.php : 38

Execute the console command.

`public handle() : mixed`

#### sendNotification()

SendPushNotification.php : 22

Send a push notification to a user via FCM.

`public sendNotification(array<string|int, mixed> $array, array<string|int, mixed>|string $usertoken) : DownstreamResponse|null`

##### Parameters

$array : array<string|int, mixed>

  Payload containing at least 'type' and 'message'

$usertoken : array<string|int, mixed>|string

  Single token or array of device tokens

##### Return values

DownstreamResponse|null —

Response object or null on failure

#### sendTeacherNotification()

SendPushNotification.php : 69

Send a teacher-specific push notification via FCM.

`public sendTeacherNotification(array<string|int, mixed> $array, array<string|int, mixed>|string $usertoken) : DownstreamResponse|null`

##### Parameters

$array : array<string|int, mixed>

  Payload containing at least 'type' and 'message'

$usertoken : array<string|int, mixed>|string

  Single token or array of device tokens

##### Return values

DownstreamResponse|null —

Response object or null on failure

## Search results