fix&feat(Logout & Contact service)
This commit is contained in:
21
app/Services/ContactService.php
Normal file
21
app/Services/ContactService.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?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();
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user