Files
roxane/app/Services/ContactService.php

26 lines
387 B
PHP
Raw Permalink Normal View History

2025-10-24 14:38:11 +02:00
<?php
namespace App\Services;
use App\Models\Contact;
class ContactService
{
public function __construct()
{
//
}
public function registerNewContactRequest(array $data): Contact
{
$contact = new Contact();
$contact->fill($data);
$contact->save();
2025-10-26 00:16:25 +02:00
// Envoyer un email à l'administrateur
return $contact;
2025-10-24 14:38:11 +02:00
}
}