app/Http/Controllers/FileController.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(Request $request)
    {
        $user = Auth::user();
        $data['active_class'] = 'file';
        File::updateOrCreate(
            ['user_id' => $user->id],
            ['province' => $request->province,
            'language1' => $request->language1,
            'date1' => $request->date1,
            'date_of_test_result1' => $request->date_of_test_result1,
            'certificate_number' => $request->certificate_number,
            'test_pin1' => $request->test_pin1,
            'test_version' => $request->test_version,
            'speaking1' => $request->speaking1,
            'listening1' => $request->listening1,
            'reading1' => $request->reading1,
            'writing1' => $request->writing1,
            'language2' => $request->language2,
            'date2' => $request->date2,
            'certificate_number2' => $request->certificate_number2,
            'result_date2' => $request->result_date2,
            'test_version2' => $request->test_version2,
            'test_pin2' => $request->test_pin2,
            'speaking2' => $request->speaking2,
            'listening2' => $request->listening2,
            'reading2' => $request->reading2,
            'writing2' => $request->writing2,
            'we_three_years' => $request->we_three_years,
            'we_ten_years' => $request->we_ten_years,
            'skill_trades' => $request->skill_trades,
            'canadian_dollars' => $request->canadian_dollars,
            'family_members' => $request->family_members,
            'job_offer' => $request->job_offer,
            'currently_working' => $request->currently_working,
            'skill_type_three_years' => $request->skill_type_three_years
            ]
        );
        return view('file.additional_info', $data);
    }
public function store ( Request $ request ) { $ user = Auth :: user ( ) ; $ data [ 'active_class' ] = 'file' ; File :: updateOrCreate ( [ 'user_id' => $ user -> id ] , [ 'province' => $ request -> province , 'language1' => $ request -> language1 , 'date1' => $ request -> date1 , 'date_of_test_result1' => $ request -> date_of_test_result1 , 'certificate_number' => $ request -> certificate_number , 'test_pin1' => $ request -> test_pin1 , 'test_version' => $ request -> test_version , 'speaking1' => $ request -> speaking1 , 'listening1' => $ request -> listening1 , 'reading1' => $ request -> reading1 , 'writing1' => $ request -> writing1 , 'language2' => $ request -> language2 , 'date2' => $ request -> date2 , 'certificate_number2' => $ request -> certificate_number2 , 'result_date2' => $ request -> result_date2 , 'test_version2' => $ request -> test_version2 , 'test_pin2' => $ request -> test_pin2 , 'speaking2' => $ request -> speaking2 , 'listening2' => $ request -> listening2 , 'reading2' => $ request -> reading2 , 'writing2' => $ request -> writing2 , 'we_three_years' => $ request -> we_three_years , 'we_ten_years' => $ request -> we_ten_years , 'skill_trades' => $ request -> skill_trades , 'canadian_dollars' => $ request -> canadian_dollars , 'family_members' => $ request -> family_members , 'job_offer' => $ request -> job_offer , 'currently_working' => $ request -> currently_working , 'skill_type_three_years' => $ request -> skill_type_three_years ] ) ; return view ( 'file.additional_info' , $ data ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .