lukinovec
36493d0a84
Merge branch 'master' into encrypted-casts
2023-11-07 11:14:08 +01:00
lukinovec
925249bb72
Test that child models extending a parent that uses VirtualColumn get encoded correctly ( #16 )
...
* Test that using different models extending the same class with VirtualColumn doesn't work correctly
* Add regression test for faulty logic
* Delete unused import
* Add migration
* Fix migrations
* Make the assertions check the intended behavior
2023-11-06 21:46:14 +01:00
lukinovec
a70a1ed7e7
Add encrypted castables docblock
2023-10-31 10:57:15 +01:00
lukinovec
56620956da
Add base class that uses VirtualColumn in tests
2023-10-17 09:47:09 +02:00
lukinovec
8b6db9ac2a
Change method to non-static in test
2023-10-17 09:46:34 +02:00
lukinovec
43f505aa37
Make static things non-static in VirtualColumn
2023-10-17 09:44:46 +02:00
Samuel Štancl
424096a548
Fix code style (php-cs-fixer)
2023-10-17 07:43:07 +00:00
lukinovec
b82084ba90
Refactor $afterListeneres
2023-10-17 09:42:22 +02:00
lukinovec
826c33f647
Correct typo
2023-10-17 06:01:28 +02:00
lukinovec
b573ec6cb9
Revert static -> $model changes
2023-10-17 05:59:52 +02:00
lukinovec
4c90064977
Correct test
2023-10-13 08:46:55 +02:00
lukinovec
5c33e250dd
Use $model instead of static where possible
2023-10-13 08:46:50 +02:00
lukinovec
cbd0b9221f
Use $model->getCustomColumns() instead of static::getCustomColumns()
2023-10-13 08:18:46 +02:00
lukinovec
e411001251
Refactor encodeAttributes()
2023-08-14 16:42:14 +02:00
lukinovec
daeb8d8c86
Don't accept unused $e
2023-08-14 13:21:37 +02:00
lukinovec
2760126de7
Use $dataEncoded bool instead of $dataEncodingStatus string
2023-08-14 13:21:13 +02:00
93ec843c4c
Update src/VirtualColumn.php
2023-08-14 12:52:50 +02:00
lukinovec
4510275ec1
Correct encrypted castable logic
2023-08-09 14:33:06 +02:00
lukinovec
b0d5dad3fd
Check hasCast manually
2023-08-09 13:09:17 +02:00
lukinovec
85723fe337
Use non-lowercase custom cast class strings
2023-08-09 12:55:02 +02:00
lukinovec
4414d11203
Delete get() and set() types
2023-08-09 12:39:52 +02:00
lukinovec
cd2cd5948a
Delete dd()
2023-08-09 12:36:58 +02:00
lukinovec
73eca107c7
dd() Laravel version
2023-08-09 12:34:55 +02:00
lukinovec
2a4c80acc0
Check Laravel CI version (testing)
2023-08-09 12:32:23 +02:00
Samuel Štancl
eda9895595
Fix code style (php-cs-fixer)
2023-08-09 10:17:18 +00:00
lukinovec
06703921f0
Break code style (testing)
2023-08-09 12:16:57 +02:00
lukinovec
4cfff533d6
Correct expected/actual value order in assertions
2023-08-08 16:57:58 +02:00
lukinovec
89ce8851ca
Move EncryptedCast class to VirtualColumnTest
2023-08-08 16:55:17 +02:00
lukinovec
86b5384447
Merge branch 'encrypted-casts' of https://github.com/lukinovec/virtualcolumn into encrypted-casts
2023-08-08 15:55:24 +02:00
lukinovec
2f0eefdb14
Test custom encrypted castable, refactor test
2023-08-08 15:55:20 +02:00
lukinovec
227054231e
Add custom encrypted castable
2023-08-08 15:51:17 +02:00
lukinovec
b0e454e110
Handle custom castables in VirtualColumn
2023-08-08 15:50:55 +02:00
Samuel Štancl
c4c52d0970
Fix code style (php-cs-fixer)
2023-08-08 11:58:48 +00:00
lukinovec
de9d9d7cab
Test casting of all default 'encrypted' castables
2023-08-08 13:58:29 +02:00
lukinovec
885e2112c2
Update attribute casting in VirtualColumn
2023-08-08 13:57:43 +02:00
lukinovec
302753f60d
Add APP_KEY to phpunit.xml
2023-08-08 09:41:10 +02:00
lukinovec
874a697d21
Handle and test 'encrypted' casts
2023-08-08 09:40:40 +02:00
lukinovec
3213a8e856
Add encrypted casts test (wip)
2023-08-07 17:42:38 +02:00
lukinovec
0b108903b5
Add L10 support, remove L6 and L8 support ( #11 )
...
* 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>
2023-02-16 11:34:42 +01:00
Samuel Štancl
46c590e240
Add @mixin annotation
2022-11-08 12:35:18 +01:00
Samuel Štancl
ab3f943990
Merge pull request #9 from lukinovec/generate-column-name
...
Add method for generating the column name
2022-10-21 14:09:30 +02:00
ac0dccc6e7
add docblock
2022-10-21 14:08:35 +02:00
lukinovec
73d7918170
Rename generateColumnName
2022-10-21 13:56:03 +02:00
lukinovec
5881f13b81
Correct comment
2022-10-21 11:51:05 +02:00
lukinovec
c0cd839acc
Add test for generating the column name
2022-10-21 11:49:10 +02:00
lukinovec
43f0b2c30f
Add method for generating column names
2022-10-21 11:32:12 +02:00
Samuel Štancl
66458d046b
mention Laravel 9 support
2022-07-22 20:17:45 +02:00
Samuel Štancl
dd3a77f17c
Merge pull request #8 from abrardev99/support-l9
...
Support Laravel 9
2022-01-27 12:08:03 +01:00
Abrar Ahmad
77173d7f03
removed l7
2022-01-27 13:30:34 +05:00
Abrar Ahmad
6dc8467473
wip
2022-01-26 21:54:10 +05:00