Split browser.php to commands with routes.
This commit is contained in:
@@ -39,10 +39,11 @@ class Product extends Model
|
||||
return $this;
|
||||
}
|
||||
|
||||
protected function categories(): Attribute
|
||||
public function categories(): Attribute
|
||||
{
|
||||
return Attribute::make(
|
||||
get: fn(string $value) => array_reverse(json_decode($value, 1)),
|
||||
set: fn(array $value) => json_encode($value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user