Laravel Classroom image

CiliSp
 
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.

 

 
 
 

CiliSp

Skills    Laravel

Qualifications :-
Location :-,,,
Description:-
Explore
 

  Students (0)