jeudi 25 juillet 2019

how can i delete particular attribute and return to the home page in laravel 5.6

id }}" rel1="delete-attribute" href="javascript:" class="dropdown-item">Delete

here is my code delete function is not working any idea

public function deleteAttribute($id = null){ ProductAttribute::where(['id'=>$id])->delete(); return redirect()->back()->with(); }

When I press the delete nothing happens



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire