* Returns a value indicating whether the attribute is safe for massive assignments. * @param string $attribute attribute name * @return bool whether the attribute is safe for massive assignments * @see safeAttributes() */
($attribute)
| 507 | * @see safeAttributes() |
| 508 | */ |
| 509 | public function isAttributeSafe($attribute) |
| 510 | { |
| 511 | return in_array($attribute, $this->safeAttributes(), true); |
| 512 | } |
| 513 | |
| 514 | /** |
| 515 | * Returns a value indicating whether the attribute is active in the current scenario. |
nothing calls this directly
no test coverage detected