We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
test can attribute delete from model
1 parent 2561cc1 commit 6592e22Copy full SHA for 6592e22
tests/AttributeTest.php
@@ -56,3 +56,11 @@
56
assertDatabaseCount('products', 1);
57
assertNotEmpty($product->hasAttributeTitle($title));
58
});
59
+
60
+test('test can attribute delete from model', function () {
61
+ $product = Product::query()->create(['title' => 'milwad-dev']);
62
+ $product->attachAttribute($title = 'role', $value = 'developer');
63
+ $product->deleteAttribute($title, $value);
64
65
+ assertDatabaseCount('products', 1);
66
+});
0 commit comments