| 12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- namespace App\Model;
- use Illuminate\Database\Eloquent\Model;
- use App\Model\Privillage\Role;
- use App\Model\MetadatProgram;
- use Auth;
- use Illuminate\Database\Eloquent\SoftDeletes;
- class MetadataProgramNotification extends Model
- {
- protected $table = 'metadata_program_notification';
- protected $fillable = [
- 'id',
- 'id_tahun_program',
- 'id_template_program',
- 'id_template_program_detail',
- 'id_upt',
- 'message',
- 'readable_admin',
- 'readable',
- 'created_by',
- 'updated_by',
- 'created_at',
- 'updated_at',
- ];
- public function metadataProgramNotificationRead(){
- return $this->hasMany('App\Model\MetadataProgramNotificationRead','id_metadata_program_notification');
- }
- public function templateProgram(){
- return $this->belongsTo('App\Model\TemplateProgram','id_template_program');
- }
- }
|