34 lines
757 B
Plaintext
34 lines
757 B
Plaintext
<?php namespace {{ namespace }};
|
|
/**
|
|
* @copyright (c) 2024 Notsoweb Software (https://notsoweb.com) - All Rights Reserved
|
|
*/
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Contracts\Database\Eloquent\CastsAttributes;
|
|
|
|
/**
|
|
* Descripción
|
|
*
|
|
* @author Moisés Cortés C. <moises.cortes@notsoweb.com>
|
|
*
|
|
* @version 1.0.0
|
|
*/
|
|
class {{ class }} implements CastsAttributes
|
|
{
|
|
/**
|
|
* Transformar valor dado.
|
|
*/
|
|
public function get(Model $model, string $key, mixed $value, array $attributes): mixed
|
|
{
|
|
return $value;
|
|
}
|
|
|
|
/**
|
|
* Prepara el valor dado para almacenamiento.
|
|
*/
|
|
public function set(Model $model, string $key, mixed $value, array $attributes): mixed
|
|
{
|
|
return $value;
|
|
}
|
|
}
|