Just guessing but have you tried to var_dump the output of sync() ?
The sync() method returns an array like so:
array(
'attached' => array(),
'detached' => array(),
'updated' => array()
);
The keys should be pretty self-explanatory. Each will contain the IDs of the models, not the actual models.
So, to answer your question, if all three of these arrays are empty you can safely assume that no action was taken during the sync().
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community