change icons, css, add routing to merchandise, add mail templater, fixes
This commit is contained in:
21
app/Models/Core/Mail/MailLog.php
Normal file
21
app/Models/Core/Mail/MailLog.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Core\Mail;
|
||||
|
||||
use App\Repositories\Core\DateTime;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class MailLog extends Model
|
||||
{
|
||||
protected $guarded = ['id'];
|
||||
|
||||
public function scopeByDestination($query, $email)
|
||||
{
|
||||
return $query->where('sent_to', $email);
|
||||
}
|
||||
|
||||
public function getCreatedAtAttribute($value)
|
||||
{
|
||||
return DateTime::DateTimeToLocale($value);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user