Tag : DB::raw()

ItSolutionStuff.com have tutorials for DB::raw() tag, here you can study articles of DB::raw() tag, DB::raw() tag posts collection, most popular and useful tutorials of DB::raw() tag, here you can find list of all relevant posts and example about DB::raw() tag, we have lists of tutorials and examples about DB::raw() tag. very simple and quick example collection of Latest DB::raw() tag.




Laravel where clause with date_format() example

Laravel where clause with date_format() example

In this post, i share with you that how to use date_format() with where condition of Laravel query builder. When i was working on my project, i require to search with get only selected month and year records from created_at(timestamp) column. I was thinking how can i but i know date_format() of mysq.....

By Hardik Savani | June 22, 2016 | Category : Laravel

Laravel 5 select with count query with group by example

Laravel 5 select with count query with group by example

We always required to get count of number of records or number of inserted record of current month etc in laravel. We can use mysql count function in laravel eloquent. We have two way to get count of column value. first we can use laravel count() of query builder and another one we can use with dire.....

By Hardik Savani | June 9, 2016 | Category : Laravel


Laravel 5 - Orderby random using rand() and DB::raw() example

Laravel 5 - Orderby random using rand() and DB::raw() example

Sometimes, we require to get randomly data using laravel query builder. you can use mysql rand() with order by. If you want to get random data using laravel eloquent then we need to use DB::raw(). In bellow example you can i use DB::raw(). In this example i use DB::raw('RAND()') inside orderBy() an.....

By Hardik Savani | May 4, 2016 | Category : Laravel