관리-도구
편집 파일: CandidateNotificationController.php
<?php namespace App\Http\Controllers; use App\Models\CandidateNotification; use Illuminate\Http\Request; class CandidateNotificationController extends Controller { /** * Store a new candidate notification. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function store(Request $request) { // dd($request->all()); // // Validate incoming data // $validated = $request->validate([ // 'candidate_id' => 'required|integer', // 'company_id' => 'required|integer', // 'company_name' => 'required|string|max:255', // 'company_email'=> 'required|email|max:255', // 'job_url' => 'required|url|max:255', // ]); // Store data in the database CandidateNotification::create($request->all()); return back()->with('success', 'Job Link Sent successfully.'); } public function index() { $jobposts = Jobpost::where('candidate_id', auth()->user()->id)->get(); return view('theme.saintsaccessories.user-profile', compact('jobposts')); } }