관리-도구
편집 파일: EmployeRoundtableRequestController.php
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Employe_roundtable_request; use Illuminate\Support\Facades\Mail; use App\Mail\GeneralMail; class EmployeRoundtableRequestController extends Controller { public function store(Request $request){ Employe_roundtable_request::create([ 'user_id'=>Auth::user()->id, 'full_name'=>$request->full_name, 'email_address'=>$request->email_address, 'position_field'=>$request->position_field, 'preferred_companies'=>json_encode($request->preferred_companies), 'skills'=>json_encode($request->skills), ]); $mail = new \stdClass(); $mail->subject = 'Employe Roundtable Interview Signup Form'; $mail->content = $request->except('_token'); Mail::to('findjobs@customdev.devopdigital.com')->send(new GeneralMail($mail)); return redirect()->back()->with('success','Thanks,Request Submitted Successfully'); } static public function show(){ $data = Employe_roundtable_request::all(); return $data; } }