File tree 1 file changed +4
-4
lines changed
laravel/database/eloquent
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -441,7 +441,7 @@ public function timestamp()
441
441
}
442
442
443
443
/**
444
- *Updates the timestamp on the model and immediately saves it.
444
+ * Updates the timestamp on the model and immediately saves it.
445
445
*
446
446
* @return void
447
447
*/
@@ -562,11 +562,12 @@ public function get_attribute($key)
562
562
*
563
563
* @param string $key
564
564
* @param mixed $value
565
- * @return void
565
+ * @return Model
566
566
*/
567
567
public function set_attribute ($ key , $ value )
568
568
{
569
569
$ this ->attributes [$ key ] = $ value ;
570
+ return $ this ;
570
571
}
571
572
572
573
/**
@@ -769,8 +770,7 @@ public function __call($method, $parameters)
769
770
}
770
771
elseif (starts_with ($ method , 'set_ ' ))
771
772
{
772
- $ this ->set_attribute (substr ($ method , 4 ), $ parameters [0 ]);
773
- return $ this ;
773
+ return $ this ->set_attribute (substr ($ method , 4 ), $ parameters [0 ]);
774
774
}
775
775
776
776
// Finally we will assume that the method is actually the beginning of a
You can’t perform that action at this time.
0 commit comments