* * * * * runuser -l toolbox -c '/usr/bin/php /application/artisan schedule:run' > /proc/1/fd/1 2>/proc/1/fd/2
20 5 * * * /application/scripts/restartworkers > /proc/1/fd/1 2>/proc/1/fd/2
+
public function avatar()
{
- $res = Gravatar::get($this->email);
+ try {
+ $res = Gravatar::get($this->email);
+ } catch (\Exception $e) {
+ $res = Gravatar::get(md5($this->email) . '@cubedesigners.com');
+ }
return str_replace('.jpg', '', $res);
}
}
foreach ($this->actions as $label => $url) {
$m->line(new HtmlString($label . __(': ') . ' <a href="' . $url . '">' . $url . '</a>'));
}
- $m->salutation(new HtmlString(__('Cordialement,') . "<br>" . __('L\'équipe :teamname',['team_name'=>env('MAIL_TEAM_NAME')])));
+ $m->salutation(new HtmlString(__('Cordialement,') . "<br>" . __('L\'équipe :teamname', ['teamname' => env('MAIL_TEAM_NAME')])));
return $m;
}