1
0
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:
ro
2024-02-02 12:16:11 -06:00
parent a2af3ee10f
commit 47c0c074aa
7 changed files with 103 additions and 2 deletions

View 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');
}
}

View File

@ -75,6 +75,13 @@ class FrontIndexController extends Controller
]);
}
public function appeals()
{
return view('front.appeals', [
'title' => "LOCATION APPEALS",
]);
}
public function location(string $uuid = "1")
{
$location = Location::where("uuid", $uuid)->first();