mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 14:06:15 +00:00
2.x
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Traits\HasTimezoneTimestamps;
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
@ -12,6 +13,8 @@
|
||||
*/
|
||||
abstract class AbstractModel extends Model
|
||||
{
|
||||
use HasTimezoneTimestamps;
|
||||
|
||||
public function jsonUpdate(string $field, string $key, mixed $value, bool $save = true): void
|
||||
{
|
||||
$current = $this->{$field};
|
||||
|
Reference in New Issue
Block a user