AttributeIlluminate\Database\Eloquent\Attributes\Touches
#[Touches]
In the Database / Eloquent group, #[Touches] applies this configuration to the target Laravel element. It accepts 1 configuration parameter.
Available since
Laravel 13.0
Targets
class
Parameters
$relationsarray|stringDefines the "relations" value used by the attribute. Expected type: array|string.
Practical usage
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Attributes\Touches;
#[Touches(['full_name'])]
class Post extends Model
{
// ...
}