Created
March 14, 2019 20:19
-
-
Save TiagoSilvaPereira/ae387980afbae4f614a5c358f1ab18f7 to your computer and use it in GitHub Desktop.
KISS aplicado ao código 02
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Código mais simples gerada pela restruturação, focada na simplicidade | |
$currentLabels = $this->getCurrentLabels(); | |
$labels = Label::where('company_id', $company->id) | |
->whereNotIn('labels.id', $currentLabels); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment