Squashed commit of the following: commitf1395c3f02Author: Olivier Legat <olivier.legat@ldc.fr> Date: Fri Jan 14 15:38:03 2022 +0100 mix flav icon commit333d8d96b1Author: Olivier Legat <olivier.legat@ldc.fr> Date: Fri Jan 14 15:23:37 2022 +0100 transparente bg favicon commit204b5f0157Author: Alexis Gousseau <alexis.gousseau@ldc.fr> Date: Thu Jan 13 12:48:58 2022 +0100 retour recette commit59ae1e851dMerge:00603e8fc1450dAuthor: Olivier Legat <olivier.legat@ldc.fr> Date: Wed Jan 5 16:49:22 2022 +0100 Merge branch 'trunk' commitfc1450d9deMerge:d748cba6aad91fAuthor: Olivier Legat <olivier.legat@ldc.fr> Date: Wed Jan 5 16:49:04 2022 +0100 Merge branch 'develop' into trunk commitd748cbafe4Merge:f3826a72684a30Author: Olivier Legat <olivier.legat@ldc.fr> Date: Tue Jan 4 16:33:51 2022 +0100 Merge branch 'develop' into trunk commitf3826a78adMerge:aae4171509c410Author: Olivier Legat <olivier.legat@ldc.fr> Date: Tue Jan 4 15:44:46 2022 +0100 Merge branch 'develop' into trunk commit00603e8776Merge:4738543aae4171Author: Olivier Legat <olivier.legat@ldc.fr> Date: Tue Jan 4 09:06:06 2022 +0100 Merge branch 'trunk' commitaae4171e1fMerge:473854357d1441Author: Olivier Legat <olivier.legat@ldc.fr> Date: Tue Jan 4 09:05:39 2022 +0100 Merge branch 'develop' into trunk
39 lines
977 B
PHP
39 lines
977 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Mail\SendMail;
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Support\Facades\Mail;
|
|
|
|
class PostController extends Controller
|
|
{
|
|
public $data = array();
|
|
public function index()
|
|
{
|
|
return view('home');
|
|
}
|
|
|
|
public function pageMentionslegales()
|
|
{
|
|
return view('rgpd/mentionslegales');
|
|
}
|
|
|
|
public function pageCharteConfidentialite()
|
|
{
|
|
return view('rgpd/charteconfidentialite');
|
|
}
|
|
|
|
public function send(Request $request)
|
|
{
|
|
$data = array(
|
|
'name' => $request->name,
|
|
'firstname' => $request->firstname,
|
|
'mail' => $request->mail,
|
|
'object' => $request->object,
|
|
'message' => $request->message
|
|
);
|
|
Mail::to(env('MAIL_FROM_ADDRESS', 'rhd@ldc.fr'))->send(new SendMail($data));
|
|
return redirect()->back()->withSuccess('Votre message a bien été envoyé !');
|
|
}
|
|
}
|