Student.PHP
它有很多费用
class student extends Model{ public function fees($round){ return $this->hasMany(fee::class)->where('payment_round','=',$round); } }
Fee.blade.PHP
@foreach($student->fees("parameter") as $fee) {{$fee->myproperty}} @endforeach
我如何将参数传递给$student->费用(“参数”)?