PHP code example of kaveh / notification-service

1. Go to this page and download the library: Download kaveh/notification-service library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

kaveh / notification-service example snippets


   Kaveh\NotificationService\NotificationServiceProvider::class,
   

   use Illuminate\Foundation\Auth\User as Authenticatable;
   

   use Kaveh\NotificationService\Abstracts\Authenticatable;
   

   public function getId()
    {
        return $this->id;
    }
   

NotificationService::sendNotification(notificationClass, UserModel, NotificationType, ?array data = []);
sh
   composer dump-autoload
   
sh
   php artisan notification:migrate