LAST_INSERT_ID is MySQL specific functionality to get the value of the AUTO_INCREMENT column most recently inserted into.
Is there a way to get the last_insert_id when using laravel's raw query? DB::query('INSERT into table …
php laravel last-insert-id