Question:How can you delete a record from a table in laraval using a Model? 

A $row=new MyModel::find($id); $row->delete() 

B $row=new MyModel::find($id); $row->clear() 

C MyModel::destroy($id); 

D MyModel::delete($id); 

+ Answer
+ Report
Total Preview: 630

Copyright © 2024. Powered by Intellect Software Ltd