합쭈기 programming

[Laravel] mysql 내장 함수 사용 본문

Dev story

[Laravel] mysql 내장 함수 사용

innocent_k 2015. 10. 21. 17:33

whereRaw ('field = password(?)', array($pw))

이런식으로 쓰던가

where('field', '=', DB::raw('password($pw)')) 

요런식으로 쓴다.