I want to check whether the user has cv or not. I used the following expression but doesn’t work any one can help
public function create()
{
if (auth()->user()->cv) {
return $this->edit()-with('You already have a cv!', 'info');
}
return view('cv.create');
}