netgescon-master/netgescon/vendor/illuminate/validation/Rules/ImageFile.php
Pikappa2 480e7eafbd 🎯 NETGESCON - Setup iniziale repository completo
📋 Commit iniziale con:
-  Documentazione unificata in docs/
-  Codice Laravel in netgescon-laravel/
-  Script automazione in scripts/
-  Configurazione sync rsync
-  Struttura organizzata e pulita

🔄 Versione: 2025.07.19-1644
🎯 Sistema pronto per Git distribuito
2025-07-19 16:44:47 +02:00

34 lines
658 B
PHP

<?php
namespace Illuminate\Validation\Rules;
class ImageFile extends File
{
/**
* Create a new image file rule instance.
*
* @param bool $allowSvg
*/
public function __construct($allowSvg = false)
{
if ($allowSvg) {
$this->rules('image:allow_svg');
} else {
$this->rules('image');
}
}
/**
* The dimension constraints for the uploaded file.
*
* @param \Illuminate\Validation\Rules\Dimensions $dimensions
* @return $this
*/
public function dimensions($dimensions)
{
$this->rules($dimensions);
return $this;
}
}