Laravel isn't forwarding my domain to Mailgun, and emails won't send

Using Laravel with Mailgun, my application omits the domain in API calls despite proper settings. Could the development server be causing this issue?

<?php
namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Mail;

class EmailTestController extends Controller {
    public function sendTest() {
        Mail::send([], [], function($msg) {
            $msg->from('[email protected]', 'LaravelApp');
            $msg->to('[email protected]')->setBody('Test email content', 'text/plain');
        });
        return response('Email sent successfully');
    }
}

hey, try checking your .env for any typos in mailgun settings. i fixed a similar issue by correcting my mailgun_domain. also, dev server configs might restrict outgoing emails, check that too. hope it helps!