laravel eloquent create vs insert

Updated: 17th July 2024
Tags: laravel

There are few important differences:

#InsertCreate
Respects fillable / guardedNoYes
Creates timestampsNoYes
Returns created objectNoYes
Runs booted method (hooks, actions, observers)NoYes
Casts attributes to the format defined in the model (e.g., json column).NoYes
Allows multi insertYesNo