If this option is active, the model will be checked for the last change if it was updated after the edit form was opened. A validation error will be thrown. Feature Traffic Cop is disabled by default.
/**
* Indicates whether should check for modifications between viewing and updating a resource.
*
* @return bool
*/
public static function trafficCop(): bool
{
return false;
}
Preventing Conflicts (Traffic Cop)
If this option is active, the model will be checked for the last change if it was updated after the edit form was opened. A validation error will be thrown. Feature Traffic Cop is disabled by default.
Sample message: