Real Dreams
Real Dreams

Reputation: 18038

Add some column to query

If you add another select() clause to query build chain it will be replace the previous one. How to add some db column to a previously configured query? This is in particular useful in defining the query scopes.

Upvotes: 0

Views: 43

Answers (1)

R.P
R.P

Reputation: 500

There should be addSelect() function available.

Reference can be found here: http://laravel.com/docs/5.1/queries#selects

Upvotes: 1

Related Questions