- Implemented session storage management for the last configuration choices made by the user. - Added functionality to prompt users when changing models to retain their previous selections. - Introduced methods to apply previous choices to the newly loaded model, including finishes, handles, glass types, and options. - Enhanced user experience by ensuring selections are automatically applied where applicable.
19 lines
515 B
PHP
19 lines
515 B
PHP
<?php
|
|
|
|
namespace App\Support\Configuratore;
|
|
|
|
/**
|
|
* URL pubblici delle immagini del configuratore. Passano dalla rotta API `media` (e non
|
|
* da /storage) perché le texture caricate da Three.js richiedono gli header CORS.
|
|
*/
|
|
class Media
|
|
{
|
|
/** Cartelle del disco public servite dalla rotta media. */
|
|
public const CARTELLE = ['configuratore/', 'modelli/'];
|
|
|
|
public static function url(?string $percorso): ?string
|
|
{
|
|
return $percorso ? route('media', ['percorso' => $percorso]) : null;
|
|
}
|
|
}
|