Files
coreality-inc/app/Http/Controllers/SupportTechnicalController.php
2024-03-13 10:43:39 +08:00

32 lines
992 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use \App\Http\Requests\SupportTechnicalRequest;
use Carbon\Carbon;
class SupportTechnicalController extends Controller
{
public function index()
{
return view('support-technical');
}
public function indexPost(SupportTechnicalRequest $request)
{
\App\Models\SupportTechnical::insert([
'name_first' => $request->input('name_first'),
'name_last' => $request->input('name_last'),
'company_name' => $request->input('company_name'),
'job_title' => $request->input('job_title'),
'email' => $request->input('email'),
'phone' => $request->input('phone'),
'contry' => $request->input('contry'),
'comments' => $request->input('comments'),
'created_at' => Carbon::now(),
]);
return redirect()->back()->with('success', 'We have received your technical inquiry');
}
}