ro
c763d749c9
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.
24 lines
505 B
PHP
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');
|
|
}
|
|
}
|