| 1 | <?php |
||
| 10 | class Model extends EloquentModel |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Provides public access to get the raw attribute value from the model. |
||
| 14 | * Used in areas where no mutations are required but performance is critical. |
||
| 15 | * |
||
| 16 | * @param $key |
||
| 17 | * @return mixed |
||
| 18 | */ |
||
| 19 | public function getRawAttribute($key) |
||
| 23 | |||
| 24 | public static function boot() |
||
| 29 | } |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()method in theSoncalls the wrong method in the parent class.