Sync changes before firing updated event
Sync changes before firing updated event

1. Logic: Since the updated events suggests the model is now saved (which it is). We should be using the `->wasChanged` function instead of the `->isDirty` functions within this function.
2. Unwanted behaviour: In my case I now check if a value is dirty and then save another. But it will create an infinite loop when you save the model, because the dirty values are still there when you update again. Instead of just that second new value.
rodrigopedra/framework,driesvints/framework,halaei/framework,hafezdivandari/framework,arturock/framework,morrislaptop/framework,dwightwatson/framework,cybercog/framework,lucasmichot/laravel--framework,lucasmichot/framework,cviebrock/framework,crynobone/framework,jerguslejko/framework,tjbp/framework,BePsvPT-Fork/framework,rodrigopedra/framework,arturock/framework,JamesForks/framework,rodrigopedra/framework,stidges/framework,bytestream/framework,jerguslejko/framework,cybercog/framework,BePsvPT-Fork/framework,vlakoff/framework,stevebauman/framework,halaei/framework,barryvdh/framework,samlev/framework,samlev/framework,stidges/framework,lucasmichot/laravel--framework,jerguslejko/framework,leo108/laravel_framework,crynobone/framework,lucasmichot/framework,rodrigopedra/framework,dwightwatson/framework,srmkliveforks/framework,gms8994/framework,barryvdh/framework,mul14/laravel-framework,halaei/framework,vlakoff/framework,mul14/laravel-framework,gms8994/framework,stevebauman/framework,ChristopheB/framework,stidges/framework,jerguslejko/framework,srmkliveforks/framework,barryvdh/framework,ChristopheB/framework,JosephSilber/framework,cviebrock/framework,arturock/framework,tomschlick/framework,tjbp/framework,mul14/laravel-framework,stidges/framework,tomschlick/framework,cviebrock/framework,srmkliveforks/framework,JosephSilber/framework,leo108/laravel_framework,gms8994/framework,laravel/framework,vlakoff/framework,mul14/laravel-framework,gms8994/framework,tomschlick/framework,notebowl/laravel-framework,JamesForks/framework,bytestream/framework,ChristopheB/framework,BePsvPT-Fork/framework,tjbp/framework,srmkliveforks/framework,driesvints/framework,notebowl/laravel-framework,BePsvPT-Fork/framework,laravel/framework,cybercog/framework,morrislaptop/framework,hafezdivandari/framework,lucasmichot/laravel--framework,barryvdh/framework,cviebrock/framework