| 1234567891011121314151617181920212223242526272829 |
- <?php
- namespace App\Http\Models;
- use Illuminate\Database\Eloquent\Model;
- /**
- * 邮件发送日志
- * Class EmailLog
- * @package App\Http\Models
- */
- class EmailLog extends Model
- {
- protected $table = 'email_log';
- protected $primaryKey = 'id';
- public $timestamps = false;
- protected $fillable = [
- 'user_id',
- 'title',
- 'content',
- 'status',
- 'error',
- 'created_at'
- ];
- function user() {
- return $this->hasOne(User::class, 'id', 'user_id');
- }
- }
|