| 1 | <?php |
||
| 11 | class Model extends EloquentModel |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Provides public access to get the raw attribute value from the model. |
||
| 15 | * Used in areas where no mutations are required but performance is critical. |
||
| 16 | * |
||
| 17 | * @param $key |
||
| 18 | * @return mixed |
||
| 19 | */ |
||
| 20 | public function getRawAttribute($key) |
||
| 24 | |||
| 25 | public static function boot() |
||
| 52 | } |
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.