Aronaman
2 months ago
322
7
Laravel

update value inside delete method

Posted 2 months ago by Aronaman

my question is how to change a value in the delete method can i use an update inside the delete method?

 public function destroy(Room $room, $id)
    {
        $self=SelfBook::where('id',$id)->firstOrFail();
        
      
    
  
      
      
if($comparison)


    dd($self);
        $self->delete();

    }

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