I have this query for an old Codeigniter project:
$this->db->select("SUM(source = 'FBS) AS facebook");
$this->db->select("SUM(source = 'FBS' AND promotion = 0) AS facebook_promotion");
$this->db->select("SUM(source = 'IG') AS instagram");
$this->db->select("SUM(source = 'LP') AS landing_page");
I'd like to have same result using Laravel, if is possible with Eloquent instead of Query Builder or Raw Query.