|
|
@@ -49,10 +49,10 @@ class Prediction extends Authenticatable
|
|
|
|
|
|
function getWinningNumbersAttribute($value)
|
|
|
{
|
|
|
- if (!empty($this->winning_numbers)) {
|
|
|
+ if (!empty($value)) {
|
|
|
$value = explode(',', $value);
|
|
|
-// $value = array_map('intval', $value);
|
|
|
-// $value[] = array_sum($value);
|
|
|
+ $value = array_map('intval', $value);
|
|
|
+ $value[] = array_sum($value);
|
|
|
return $value;
|
|
|
}
|
|
|
return [];
|