PayrollStructureDetail.php 243 B

123456789101112
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class PayrollStructureDetail extends Model
  5. {
  6. public function head(){
  7. return $this->belongsTo('App\Models\PayrollHead','head_id','id')->orderBy('name');
  8. }
  9. }