I am new in laravel and trying to get last inserted id from this query:
DB::select("INSERT INTO current_survey (`name`, `created_by`, `description`) SELECT `name`, `created_by`, `description` FROM survey WHERE id=survey_id");
this query working well, can any one suggest me how this is possible in laravel?
Thanks