muazzamazaz
4 months ago

Updated Record via Model with composite unique columns

Posted 4 months ago by muazzamazaz

Column not found: 1054 Unknown column 'id' in 'where clause

I have table column name destination_id

  $commission = Commission::where('destination_id',$id)->first();

   $input = Input::only('destination_id','effective_date', 'ticketPrice','commPercentage');       
       
  $commission->fill($input)->save();

Please sign in or create an account to participate in this conversation.