ldc-mesbr-app/app/Traits/ThanksTrait.php
Vincent BRIDIER 203922849c
fix: PHPCBF
2025-04-03 09:30:16 +02:00

26 lines
568 B
PHP

<?php
namespace App\Traits;
use Illuminate\Http\Request;
trait ThanksTrait
{
public function getThanks(Request $request)
{
if ($request->session()->has('campagne')) {
$campagne = $request->session()->get('campagne');
}
if ($request->session()->has('contact')) {
$contact = $request->session()->get('contact');
}
$ref = $campagne->camp_id;
$view = view('landings::' . $ref . '.merci')
->with(['ref' => $ref, 'contact' => $contact]);
echo($view);
}
}