You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
535 B
PHTML

<?php namespace App\Models;
class Sms extends BaseSoftDeleteModel
{
protected $table = 'sms';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'title', 'content', 'callback', 'total', 'success', 'failure'
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
];
public function details()
{
return $this->hasMany('App\Models\SmsDetail', 'sms_id');
}
}