Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

vipin93's avatar
Level 13

@tykus again one problem actually problem is that when i try to pay fee of last year september month its not updated means still showing "0 => "Your fees are due for September" its because i save month in the format of current year

here is my method

 protected $fillable = [
        'tution_fee','development_fee','other_fee','month','remarks','late_fee','course_id'
    ];

     protected $dates = ['month'];

   public function setMonthAttribute($value)
    {
         //dd($value);
        $this->attributes['month'] = Carbon::createFromFormat('m',$value);
    }

input

{{ Form::selectMonth('month',  null, ['placeholder' => '---Select Month','class' => 'form-control','required'=> ' "" '  ]) }}

how to fixed this problem

phuongle's avatar

$s->subcriptions ? Do you have function subcriptions relationship?

vipin93's avatar
Level 13

@phuongle yes i have


 public function subscriptions()
    {
        return $this->hasMany(Subscription::Class)->latest();
    }
Previous

Please or to participate in this conversation.