mirror of
https://koodu.h-i.works/projects/thebadspace
synced 2025-06-25 16:04:37 -05:00
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.
This commit is contained in:
23
app/Http/Controllers/AppealMailController.php
Normal file
23
app/Http/Controllers/AppealMailController.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user