1<?php 2 3// NotifyXF.php 4 5namespace App; 6 7use Illuminate\Support\Facades\Http; 8 9class NotifyXF10{11 public function send($message)12 {13 return Http::post('https://notifyxf.com/api/message', [14 'access_token' => '...',15 'message' => $message,16 'handle' => 'notifyxf-matters',17 ]);18 }19}20 21// Usage 22app(NotifyXF::class)->send("New User Signup! {$user->email}");