Merge pull request #1902 from SevanNerse/dev
allAttributes should be filled on update processes
This commit is contained in:
		@@ -36,6 +36,20 @@ abstract class Model extends Eloquent
 | 
			
		||||
        parent::__construct($attributes);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Update the model in the database.
 | 
			
		||||
     *
 | 
			
		||||
     * @param  array  $attributes
 | 
			
		||||
     * @param  array  $options
 | 
			
		||||
     * @return bool
 | 
			
		||||
     */
 | 
			
		||||
    public function update(array $attributes = [], array $options = [])
 | 
			
		||||
    {
 | 
			
		||||
        $this->allAttributes = $attributes;
 | 
			
		||||
 | 
			
		||||
        return parent::update($attributes, $options);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public static function observe($classes)
 | 
			
		||||
    {
 | 
			
		||||
        parent::observe($classes);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user