syntax error, unexpected ‘=>’ (T_DOUBLE_ARROW) [closed]

The => is the array assignment operator, and you haven’t told PHP this is an array. Try:

 public $is_success = true;
 public $messages = array(
        'success' => [],
        'error' => [],
        'admin_error' => [],
    );

References

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)