wasChanged() vs wasRecentlyCreated - Laravel Tips
Let's start with a simple model like this:
class MyModel extends Model
{
protected $fillable = [
'name'
];
protected static function booted(): void
{
static::created(function ($model) {
$model->dumpEvent('...
tonyjoe.dev3 min read