MasterOption.php 494 B

12345678910111213141516171819202122232425
  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 MasterOption extends Model
  9. {
  10. use SoftDeletes;
  11. protected $table = 'master_options';
  12. protected $fillable = [
  13. 'label',
  14. 'status',
  15. ];
  16. public function masterOptionDetail(){
  17. return $this->hasMany('App\Model\MasterOptionDetail', 'id_master_option');
  18. }
  19. }