TemplateProgramRole.php 565 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace App\Model;
  3. use Illuminate\Database\Eloquent\Model;
  4. use App\Model\Privillage\Role;
  5. use App\Model\TahunProgramDetail;
  6. use Auth;
  7. use Illuminate\Database\Eloquent\SoftDeletes;
  8. class TemplateProgramRole extends Model
  9. {
  10. use SoftDeletes;
  11. protected $table = 'template_program_role';
  12. protected $fillable = [
  13. 'id_role',
  14. 'id_template_program',
  15. 'created_by',
  16. 'updated_by',
  17. ];
  18. public function templateProgram(){
  19. return $this->belongsTo('App\Model\TemplateProgram', 'id_template_program');
  20. }
  21. }