mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-11-04 03:16:52 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			425 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			425 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace App\Observers;
 | 
						|
 | 
						|
use App\Models\EggVariable;
 | 
						|
 | 
						|
class EggVariableObserver
 | 
						|
{
 | 
						|
    public function creating(EggVariable $variable): void
 | 
						|
    {
 | 
						|
        if (isset($variable->field_type)) {
 | 
						|
            unset($variable->field_type);
 | 
						|
        }
 | 
						|
    }
 | 
						|
 | 
						|
    public function updating(EggVariable $variable): void
 | 
						|
    {
 | 
						|
        if (isset($variable->field_type)) {
 | 
						|
            unset($variable->field_type);
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |