PATH:
home
/
rwabteecom
/
project_11
/
app
/
Services
/
ContactUs
/
Editing: ContactUsServices.php
<?php namespace App\Services\ContactUs; use App\Interfaces\ServiceInterface; use App\Models\ContactUs; use DB; class ContactUsServices implements ServiceInterface { public function index($active = false) { // TODO: Implement index() method. } public function findOrFail($id, $active = false) { // TODO: Implement findOrFail() method. } public function findWithoutFail($id, $active = false) { // TODO: Implement findWithoutFail() method. } public function store($request): void { DB::transaction(function () use ($request) { ContactUs::query()->create([ "name" => $request->name, "phone" => $request->phone, "message" => $request->message ]); }); } public function update($id, $request) { // TODO: Implement update() method. } public function destroy($id) { // TODO: Implement destroy() method. } }
SAVE
CANCEL