for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Appvise\AppStoreNotifications\Model;
use Illuminate\Database\Eloquent\Model;
class AppleNotification extends Model
{
public $guarded = [];
protected $casts = [
'payload' => 'array',
];
public static function storeNotification(string $notificationType, array $notificationPayload)
return self::create(
[
'type' => $notificationType,
'payload' => $notificationPayload,
]
);
}