thebadspace/app/Http/Controllers/AppealMailController.php
ro c763d749c9 Messaging infrastructure
Put together a quick test to get internal messaging working for appeals
and joining current sources requests. Now that it works, forms that will
leverage messaging will be created.
2024-02-02 12:16:11 -06:00

24 lines
505 B
PHP

<?php
namespace App\Http\Controllers;
use App\Mail\LocationAppeal;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Mail;
class AppealMailController extends Controller
{
/**
* Send appeal request
*/
public function sendAppeal(Request $request): RedirectResponse
{
//$order = Order::findOrFail($request->order_id);
Mail::to('ro@h-i.works')->send(new LocationAppeal());
return redirect('/appeals');
}
}