feat: ada trait for real-time updated data
This commit is contained in:
parent
e5754f93c4
commit
77927608b5
11
app/Traits/WithUpdatedData.php
Normal file
11
app/Traits/WithUpdatedData.php
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Traits;
|
||||||
|
|
||||||
|
trait WithUpdatedData
|
||||||
|
{
|
||||||
|
public function updated(string $propertyName, string $value)
|
||||||
|
{
|
||||||
|
$this->validateOnly($propertyName);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user