This is the native sql:
$sql = "Select count(name) from users Where email = 't@t.com' and user_id = 10";
I have this laravel code:
$checker = Customer::whereEmailAndUserId("t@t.com",10)->count("name");
Is this a correct way to do it in laravel?
via PinoyStackOverflower