Last active
          April 21, 2019 11:37 
        
      - 
      
 - 
        
Save Titoratus/9e93e6809a6a82c08c4015fee23ebf2f to your computer and use it in GitHub Desktop.  
Revisions
- 
        
Titoratus renamed this gist
Apr 21, 2019 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. - 
        
Titoratus created this gist
Apr 21, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ class MyModel extends Model { ... public function afterCreate() { // вот значение purged поля _extras // подчкёркивание (_) означает, что это поле (которое в форме) не будет сохраняться в данной модели MyModel. // но я хочу получить его для сохранения в другую модель. $val = $this->getOriginalPurgeValue('_extras'); } protected $purgeable = ['_extras']; }