ldc-le-gaulois-pro/app/Http/Controllers/PostController.php

40 lines
977 B
PHP
Raw Normal View History

2021-12-22 10:05:39 +01:00
<?php
namespace App\Http\Controllers;
use App\Mail\SendMail;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Mail;
2021-12-22 10:05:39 +01:00
class PostController extends Controller
{
public $data = array();
2021-12-22 10:05:39 +01:00
public function index()
{
return view('home');
}
2022-01-04 16:33:40 +01:00
public function pageMentionslegales()
{
return view('rgpd/mentionslegales');
}
public function pageCharteConfidentialite()
{
2022-01-04 16:33:40 +01:00
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));
Retour Recette 1 Squashed commit of the following: commit f1395c3f02c4d9a626417cdb7f6ad29b5621c0c3 Author: Olivier Legat <olivier.legat@ldc.fr> Date: Fri Jan 14 15:38:03 2022 +0100 mix flav icon commit 333d8d96b127780aa0e195ae7a95406007a09ad7 Author: Olivier Legat <olivier.legat@ldc.fr> Date: Fri Jan 14 15:23:37 2022 +0100 transparente bg favicon commit 204b5f01578af522e567dbbfda2d315063e64d20 Author: Alexis Gousseau <alexis.gousseau@ldc.fr> Date: Thu Jan 13 12:48:58 2022 +0100 retour recette commit 59ae1e851dcb49f5e9e7d01066ac0b77678cfc25 Merge: 00603e8 fc1450d Author: Olivier Legat <olivier.legat@ldc.fr> Date: Wed Jan 5 16:49:22 2022 +0100 Merge branch 'trunk' commit fc1450d9de8eb13c868b130657271b37933890ce Merge: d748cba 6aad91f Author: Olivier Legat <olivier.legat@ldc.fr> Date: Wed Jan 5 16:49:04 2022 +0100 Merge branch 'develop' into trunk commit d748cbafe4a48c865507c34ce10940b7a3ea7ca0 Merge: f3826a7 2684a30 Author: Olivier Legat <olivier.legat@ldc.fr> Date: Tue Jan 4 16:33:51 2022 +0100 Merge branch 'develop' into trunk commit f3826a78adde7c8b4c8580f79c9420f830d7738e Merge: aae4171 509c410 Author: Olivier Legat <olivier.legat@ldc.fr> Date: Tue Jan 4 15:44:46 2022 +0100 Merge branch 'develop' into trunk commit 00603e8776a439c66e1170c572a21956127e4161 Merge: 4738543 aae4171 Author: Olivier Legat <olivier.legat@ldc.fr> Date: Tue Jan 4 09:06:06 2022 +0100 Merge branch 'trunk' commit aae4171e1f24e2d41c4f22cd31409d89d04baf6e Merge: 4738543 57d1441 Author: Olivier Legat <olivier.legat@ldc.fr> Date: Tue Jan 4 09:05:39 2022 +0100 Merge branch 'develop' into trunk
2022-01-14 15:41:53 +01:00
return redirect()->back()->withSuccess('Votre message a bien été envoyé !');
}
2022-01-04 16:33:40 +01:00
}