lundi 7 octobre 2019

is it possible i create post and also want to redirect on same post after creation in laravel

DB::table('job_post')->insert(['user_id'=>$user->id,'job_title'=>$data['job_title'],'job_skill'=>$data['skill'],'max_sal'=>$data['max_sal'],'min_sal'=>$data['min_sal'],'job_type'=>$data['job_type'],'shift'=>$data['shift'],'last_date'=>$data['last_date'],'job_image'=>$imagename,'job_description'=>$data['job_description'],'latitude'=>$data['latitude'],'longitude'=>$data['longitude'],'location'=>$data['location']]);
            //return redirect()->to('employer/congrats/......here i want id of job_post which i create');
            return view('employer/congrats',compact('id','navbar_data'));


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire