Sindbad~EG File Manager
<?php
class MailLogs extends Eloquent {
protected $primaryKey = 'mail_log_id';
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'mail_logs';
public Static function log($receipt_id,$type_of_mail,$loop_count,$status)
{
try
{
$mail_log = new MailLogs();
$mail_log->receipt_id = $receipt_id;
$mail_log->type_of_mail = $type_of_mail;
$mail_log->loop_count = $loop_count;
$mail_log->status = $status;
$mail_log->save();
}
catch (Exception $e)
{
Log::error('Models: MailLogs -> create '.$e->getMessage());
// return [];
}
}
}
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists