Eloquent SELECT “string” AS content_type causes errors

Solution:

List the columns you want on select like this:

$db = DB::table('fundraisers')
    ->select('name', DB::raw("'fund' as content_type"))
    //...

Check Laravel docs for more info.