Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Tampilan route di view role banyak yang double #13

Closed
nicovicz opened this issue Aug 16, 2016 · 1 comment
Closed

[Bug] Tampilan route di view role banyak yang double #13

nicovicz opened this issue Aug 16, 2016 · 1 comment

Comments

@nicovicz
Copy link

tampilan pada saat assign route(permission) ke role banyak yg double dikarenakan penggunaan distinct yang tidak tepat

fix :

$types = Route::find()->select('type')->distinct()->where(['status' => 1])->all();
atau
$types = Route::find()->where(['status' => 1])->groupBy('type')->all();

@hscstudio
Copy link
Owner

merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants