Company.php
public function routeNotificationForMail() {
return $this->office_mail;
}
这是我的公司模式,我只能指定一个邮件id.but,我想将邮件发送到2个邮件id
App\Notifications\JobApplication.php
public function toMail($notifiable) {
$message = 'A candidate applied for your job posting, ' . $this->job['job
所以我有一个像这样的电子表格,每一行都是与一家公司的合同:
Company | Revenue
------- | -------
Facebook| 1000000
Google | 1000000
Facebook| 100000
John Doe| 123
John Doe| 100
John Doe| 8
John Doe| 50
foo inc.| 100
现在我想列出收入最高的前n家公司。假设n=2应该是这样的:
Company | Revenue SUM
-------- | -----------
Facebook | 1100000
Google | 1000000