How can I do a case-sensitive string match with laravel?
SELECT * FROM `invites` WHERE `token`=\'OGwie2e2985tOEGewgu23hUFs\'
Can be done as >
You'll need to use DB::raw(), perhaps something like
Invite::where(DB::raw('BINARY `token`'), $token)->first();
or alternatively:
Invite::whereRaw("BINARY `token`= ?",[$token])->first()