app/Http/Controllers/ResumeController.php
/**
     *Returns the view with the edit fields of the resume
     */
Returns the view with the edit fields of the resume
Returns the view with the edit fields of the resume
public function edit()
    {
        $data = [];
        $data['user'] = Auth::user();
        $resume = Resume::select(['resume'])
            ->where('user_id', Auth::id())
            ->first();
        $data['res'] = $resume;
        $data['resume'] = json_decode($resume->resume ?? null);
        $data['jobTypes'] = CompanyJob::jobTypes();
        return view('resume.edit', $data);
    }
public function edit ( ) { $ data = [ ] ; $ data [ 'user' ] = Auth :: user ( ) ; $ resume = Resume :: select ( [ 'resume' ] ) -> where ( 'user_id' , Auth :: id ( ) ) -> first ( ) ; $ data [ 'res' ] = $ resume ; $ data [ 'resume' ] = json_decode ( $ resume -> resume ?? null ) ; $ data [ 'jobTypes' ] = CompanyJob :: jobTypes ( ) ; return view ( 'resume.edit' , $ data ) ; }
Returns the view with the edit fields of the resume
Returns the view with the edit fields of the resume