Closed Sarav-S closed 7 years ago
Hi @Sarav-S
It worked well in my test as follows.
Category::where('id', 1)->delete();
$category = new Category;
$category->newInstance()->where('id', 2)->delete();
Is there any example code?
Hi @atayahmet
Category::where('id', 1)->delete();// this works.
But I have trying to delete by following code
$category = Category::find($id);
// Perform some logic and then
$category->delete()
Hi @Sarav-S
i fixed it. Please update package.
@atayahmet Great! Will update the package now. 👍
When I try deleting a record, it is throwing me this error
My Model File