databases and models
This commit is contained in:
30
app/Models/Mail/SentMail.php
Normal file
30
app/Models/Mail/SentMail.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Mail;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class SentMail extends Model
|
||||
{
|
||||
// Table Name
|
||||
protected $table = 'sent_mails';
|
||||
|
||||
//Primary Key
|
||||
public $primaryKey = 'id';
|
||||
|
||||
// Timestamps
|
||||
public $timestamps = false;
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
'sender',
|
||||
'subject',
|
||||
'body',
|
||||
'recipient',
|
||||
'recipient_type',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user