Advertisement
Guest User

Push Notif

a guest
Jul 23rd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. <?php
  2. namespace App\Libraries;
  3.  
  4.  
  5. use Carbon\Carbon;
  6. use Illuminate\Database\Eloquent\ModelNotFoundException;
  7. use Illuminate\Http\Request;
  8. use Illuminate\Support\Facades\DB;
  9.  
  10.  
  11. class PushNotificationLibrary
  12. {
  13.  
  14. protected $request;
  15.  
  16. protected $serverKey;
  17. protected $url;
  18.  
  19.  
  20. /**
  21. * Defining constructor
  22. */
  23. public function __construct(Request $request)
  24. {
  25. $this->request = $request;
  26.  
  27. $this->serverKey = env('FCM_SERVER_KEY')
  28. $this->url = "https://android.googleapis.com/gcm/send";
  29. }
  30.  
  31.  
  32. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement