Laravel Classroom image

Yasar  Khan / Professional / Web Technology

 
To post your Question Join Classroom
 
Lesson Topics's No:-  First|6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14|Last
Lessons:-Fluent Query Builder

10.8 Expressions
The methods we have been using so far escape and quote the parameters you provide automatically,
but what if we need something really custom? What if we don’t want anything else added?
For this we can use the DB::raw() method. Here’s an example :
1 <?php
2
3 DB::table('shoes')->update(array('worn' => DB::raw('NOW()')));
In this query the NOW() will not be escaped or quoted. Lots of freedom there, but don’t forget
that spiderman quote! Be responsible with this power.

 

 
 
 

Yasar  Khan

Skills    Laravel

Qualifications :-
Location :-Dehradun,Dehradun,Uttarakhand,India
Description:- Hi i am yasar working as web developer since last 3 years.
Explore
 

  Students (0)