FundRequest.php 338 B

12345678910111213141516171819202122
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class FundRequest extends Model
  5. {
  6. protected $table = "fund_request";
  7. protected $guarded=['id'];
  8. function acc_head()
  9. {
  10. return $this->belongsTo('App\Models\AccountHead','purpose');
  11. }
  12. function user()
  13. {
  14. return $this->belongsTo('App\User','request_by');
  15. }
  16. }