app/Http/Controllers/JobOfferController.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \App\Http\Requests\AddJobRequest  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(AddJobRequest $request)
    {
        $job = JobOffer::create($request->only(
            'title', 'description', 'date', 'skills','company_id'
        ));
        return redirect()->route('joboffers.index');
    }
public function store ( AddJobRequest $ request ) { $ job = JobOffer :: create ( $ request -> only ( 'title' , 'description' , 'date' , 'skills' , 'company_id' ) ) ; return redirect ( ) -> route ( 'joboffers.index' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .