* Add encrypted casts test (wip)
* Handle and test 'encrypted' casts
* Add APP_KEY to phpunit.xml
* Update attribute casting in VirtualColumn
* Test casting of all default 'encrypted' castables
* Fix code style (php-cs-fixer)
* Handle custom castables in VirtualColumn
* Add custom encrypted castable
* Test custom encrypted castable, refactor test
* Move EncryptedCast class to VirtualColumnTest
* Correct expected/actual value order in assertions
* Break code style (testing)
* Fix code style (php-cs-fixer)
* Check Laravel CI version (testing)
* dd() Laravel version
* Delete dd()
* Delete get() and set() types
* Use non-lowercase custom cast class strings
* Check hasCast manually
* Correct encrypted castable logic
* Update src/VirtualColumn.php
* Use `$dataEncoded` bool instead of `$dataEncodingStatus` string
* Don't accept unused `$e`
* Refactor `encodeAttributes()`
* Use `$model->getCustomColumns()` instead of `static::getCustomColumns()`
* Use `$model` instead of `static` where possible
* Correct test
* Revert `static` -> `$model` changes
* Correct typo
* Refactor `$afterListeneres`
* Fix code style (php-cs-fixer)
* Make static things non-static in VirtualColumn
* Change method to non-static in test
* Add base class that uses VirtualColumn in tests
* Add encrypted castables docblock
* Fix merge
* Fix ParentModel change
* make $this and $model use clear and consistent
---------
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
Co-authored-by: Samuel Štancl <samuel@archte.ch>
* Add L10 support
* Update PHP version in ci.yml
* Update ci.yml
* Revert ci.yml changes
* Migrate PHPUnit XML config using "--migrate-configuration"
* Update phpunit.xml (delete cacheDirectory, use backupStaticAttributes instead of backupStaticProperties)
* Delete backupStaticAttributes
* Add PHP version matrix
* Use ci.yml from #12
* Correct Laravel matrix versions
* Revert ci.yml changes
* Use multiple PHP versions
* Update ci.yml
* Don't use PHP 8 with Laravel 10 in CI
* Update ci.yml
* Remove L6 and L8 support
* Use single PHP version in CI
* Update ci.yml
* Change matrix in ci.yml
* swap laravel 9 & 10
* Update README.md
---------
Co-authored-by: Samuel Štancl <samuel@archte.ch>