Skip to main content

Search Results for "eloquent vs query builder"

We found 8 results for "eloquent vs query builder".

Tutorial 2 min read Free

Select with DB::raw() - make your database work

When selecting data form the database, sometimes you need to make some extra filtering with results - with some if-else statements and similar. With Laravel - you can achieve that with Accessor fields or just looping through results in PHP. But there is a more effective way - to move the filters to the database query itself.