Created
February 14, 2021 18:57
-
-
Save nicolaskempf57/10780c821eb4c0afda69595dc1debdfa to your computer and use it in GitHub Desktop.
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 | |
DB::select('select * from users where votes = ?', [100]); | |
DB::select('select * from users where votes = :votes', ['votes' => 1]); | |
DB::table('users') | |
->where('votes', '=', 100) | |
->get(); | |
User::where('votes', '=', 100) | |
->get(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment