1
0
Fork 0
mirror of https://github.com/archtechx/virtualcolumn.git synced 2025-12-12 05:14:05 +00:00

Commit graph

  • 316a8241cc
    Merge 5426e41a5c into 4664d00099 Nick 2025-12-06 23:21:40 -08:00
  • 4664d00099
    Merge pull request #24 from archtechx/fix-tests master Samuel Štancl 2025-12-06 16:41:58 +01:00
  • 9da2d6fe8d
    Test that with encrypted casts, the encrypted values are saved in the DB (#21) lukinovec 2025-12-06 16:34:56 +01:00
  • 2fd259b0e9 Add timestamp columns to the default getCustomColumns() fix-tests lukinovec 2025-07-22 13:09:08 +02:00
  • bb38940cbf Add regression test for timestamps being included in the data column lukinovec 2025-07-22 13:08:27 +02:00
  • 9d19e3a16f Add timestamp columns to getCustomColumns() by default fix-timestamps lukinovec 2025-07-22 13:04:17 +02:00
  • 357901dac5 Add regression test for timestamps being included in the data column lukinovec 2025-07-22 13:03:04 +02:00
  • ab128b1fbc Make running tests work (undocumented PHPUnit change) lukinovec 2025-07-22 12:12:31 +02:00
  • 9bdcd52583 Include timestamps in getCustomColumns() by default timestamps-on-update lukinovec 2025-07-22 09:44:20 +02:00
  • ac55a5b5ec Add regression test for timestamps being included in the data column lukinovec 2025-07-22 09:43:26 +02:00
  • 0f4d04ee4f Make running tests work with new PHPUnit version lukinovec 2025-07-21 12:56:13 +02:00
  • eab52be70f feat: Add php8.4 as devcontainer for github. Henrique Felix 2025-05-12 17:23:46 +00:00
  • dda54ddab0 feat: Add new column for "foo_child" table to link with the table "foo". Henrique Felix 2025-05-12 17:23:27 +00:00
  • 75718edcfe
    update supported version in readme v1.5.0 Samuel Štancl 2025-02-25 14:12:44 +01:00
  • c799a9fe2a update CI matrix Samuel Štancl 2025-02-25 13:09:31 +01:00
  • efef0f1bdb
    use >= version constraints Samuel Štancl 2025-02-14 14:30:47 +01:00
  • eb56f6cc5f Test that with encrypted casts, the encrypted values are saved in the DB encrypted-casts-db-test lukinovec 2025-01-14 11:09:01 +01:00
  • 5426e41a5c Throw exception if a user is trying to overwrite the data without first loading it Nick Potts 2024-04-09 07:18:43 +08:00
  • 9cda7d498c Early return in the listener if data column isn't required Nick Potts 2024-04-09 06:38:08 +08:00
  • 09bdf523e0 Early return in the listener if data column isn't required Nick Potts 2024-04-09 06:38:08 +08:00
  • 65f9000328
    Handle encrypted columns which are set to null (#19) v1.4.1 Nick 2024-04-07 20:26:29 +02:00
  • 4b070da81f 🐛 Don't consider null types for decryption Nick Schaller 2024-04-07 16:00:20 +02:00
  • 9594cd0857 🧪 Add a test for a null value Nick Schaller 2024-04-07 14:25:01 +02:00
  • 2d61396e54
    add missing EOL Samuel Štancl 2024-04-06 17:49:13 +02:00
  • 4a8031266f Don't break with Model::shouldBeStrict()` enabled Nick Potts 2024-04-06 20:46:01 +08:00
  • 7371aac2ab
    Laravel 11 support (#17) v1.4.0 Samuel Štancl 2024-01-27 22:49:31 +01:00
  • 5538055ff8 Laravel 11 support Samuel Štancl 2024-01-27 22:48:21 +01:00
  • 89e00fbcd9 make getCustomColumns() and getDataColumn() static again Samuel Štancl 2023-11-08 22:32:12 +01:00
  • 72de33a3d4
    Add encrypted casts support + allow using the trait on multiple models (#14) lukinovec 2023-11-08 10:08:34 +01:00
  • 26356130b1 make $this and $model use clear and consistent Samuel Štancl 2023-11-08 10:03:27 +01:00
  • ff84ef1379 Fix ParentModel change lukinovec 2023-11-07 12:25:56 +01:00
  • 955860d34a Fix merge lukinovec 2023-11-07 12:04:37 +01:00
  • 36493d0a84
    Merge branch 'master' into encrypted-casts lukinovec 2023-11-07 11:14:08 +01:00
  • 925249bb72
    Test that child models extending a parent that uses VirtualColumn get encoded correctly (#16) lukinovec 2023-11-06 21:46:14 +01:00
  • a978088300 Make the assertions check the intended behavior lukinovec 2023-11-02 11:54:57 +01:00
  • 9f6fa743f1 Fix migrations lukinovec 2023-11-02 11:32:10 +01:00
  • 9cf17865d0 Add migration lukinovec 2023-11-02 11:24:48 +01:00
  • 3b2453f759 Delete unused import lukinovec 2023-11-02 11:20:08 +01:00
  • 0d1e18abf1 Add regression test for faulty logic lukinovec 2023-11-02 11:16:20 +01:00
  • 4c0613fee8 Test that using different models extending the same class with VirtualColumn doesn't work correctly lukinovec 2023-11-01 15:47:00 +01:00
  • a70a1ed7e7 Add encrypted castables docblock lukinovec 2023-10-31 10:57:15 +01:00
  • 56620956da Add base class that uses VirtualColumn in tests lukinovec 2023-10-17 09:47:09 +02:00
  • 8b6db9ac2a Change method to non-static in test lukinovec 2023-10-17 09:46:34 +02:00
  • 43f505aa37 Make static things non-static in VirtualColumn lukinovec 2023-10-17 09:44:46 +02:00
  • 424096a548 Fix code style (php-cs-fixer) Samuel Štancl 2023-10-17 07:43:07 +00:00
  • b82084ba90 Refactor $afterListeneres lukinovec 2023-10-17 09:42:22 +02:00
  • 826c33f647 Correct typo lukinovec 2023-10-17 06:01:28 +02:00
  • b573ec6cb9 Revert static -> $model changes lukinovec 2023-10-17 05:59:52 +02:00
  • 4c90064977 Correct test lukinovec 2023-10-13 08:46:55 +02:00
  • 5c33e250dd Use $model instead of static where possible lukinovec 2023-10-13 08:46:50 +02:00
  • cbd0b9221f Use $model->getCustomColumns() instead of static::getCustomColumns() lukinovec 2023-10-13 08:18:46 +02:00
  • e13abfb64b
    Update VirtualColumn.php b09v 2023-10-02 10:07:47 +02:00
  • e411001251 Refactor encodeAttributes() lukinovec 2023-08-14 16:42:14 +02:00
  • daeb8d8c86 Don't accept unused $e lukinovec 2023-08-14 13:21:37 +02:00
  • 2760126de7 Use $dataEncoded bool instead of $dataEncodingStatus string lukinovec 2023-08-14 13:21:13 +02:00
  • 93ec843c4c
    Update src/VirtualColumn.php Samuel Štancl 2023-08-14 12:52:50 +02:00
  • 4510275ec1 Correct encrypted castable logic lukinovec 2023-08-09 14:33:06 +02:00
  • b0d5dad3fd Check hasCast manually lukinovec 2023-08-09 13:09:17 +02:00
  • 85723fe337 Use non-lowercase custom cast class strings lukinovec 2023-08-09 12:55:02 +02:00
  • 4414d11203 Delete get() and set() types lukinovec 2023-08-09 12:39:52 +02:00
  • cd2cd5948a Delete dd() lukinovec 2023-08-09 12:36:58 +02:00
  • 73eca107c7 dd() Laravel version lukinovec 2023-08-09 12:34:55 +02:00
  • 2a4c80acc0 Check Laravel CI version (testing) lukinovec 2023-08-09 12:32:23 +02:00
  • eda9895595 Fix code style (php-cs-fixer) Samuel Štancl 2023-08-09 10:17:18 +00:00
  • 06703921f0 Break code style (testing) lukinovec 2023-08-09 12:16:57 +02:00
  • 4cfff533d6 Correct expected/actual value order in assertions lukinovec 2023-08-08 16:57:58 +02:00
  • 89ce8851ca Move EncryptedCast class to VirtualColumnTest lukinovec 2023-08-08 16:55:17 +02:00
  • 86b5384447 Merge branch 'encrypted-casts' of https://github.com/lukinovec/virtualcolumn into encrypted-casts lukinovec 2023-08-08 15:55:24 +02:00
  • 2f0eefdb14 Test custom encrypted castable, refactor test lukinovec 2023-08-08 15:55:20 +02:00
  • 227054231e Add custom encrypted castable lukinovec 2023-08-08 15:51:17 +02:00
  • b0e454e110 Handle custom castables in VirtualColumn lukinovec 2023-08-08 15:50:55 +02:00
  • c4c52d0970 Fix code style (php-cs-fixer) Samuel Štancl 2023-08-08 11:58:48 +00:00
  • de9d9d7cab Test casting of all default 'encrypted' castables lukinovec 2023-08-08 13:58:29 +02:00
  • 885e2112c2 Update attribute casting in VirtualColumn lukinovec 2023-08-08 13:57:43 +02:00
  • 302753f60d Add APP_KEY to phpunit.xml lukinovec 2023-08-08 09:41:10 +02:00
  • 874a697d21 Handle and test 'encrypted' casts lukinovec 2023-08-08 09:40:40 +02:00
  • 3213a8e856 Add encrypted casts test (wip) lukinovec 2023-08-07 17:42:38 +02:00
  • 0b108903b5
    Add L10 support, remove L6 and L8 support (#11) v1.3.1 lukinovec 2023-02-16 11:34:42 +01:00
  • 132a5cc0da
    Update README.md Samuel Štancl 2023-02-16 11:33:55 +01:00
  • bb80f98176
    swap laravel 9 & 10 Samuel Štancl 2023-02-16 11:32:01 +01:00
  • 7c4547ce4d Change matrix in ci.yml lukinovec 2023-02-16 11:25:44 +01:00
  • 0bf4eb54e4 Update ci.yml lukinovec 2023-02-16 11:01:46 +01:00
  • 02603426a6 Use single PHP version in CI lukinovec 2023-02-16 09:06:26 +01:00
  • 51bda4ba34 migrate phpunit configuration Saade 2023-02-15 17:09:00 -03:00
  • 644cbfe5ac drop < L9 support Saade 2023-02-15 17:05:02 -03:00
  • fb5471a901 fix: matrix PHP version Saade 2023-02-15 14:04:58 -03:00
  • c97849ccb2 Remove L6 and L8 support lukinovec 2023-02-15 17:46:44 +01:00
  • 995155603a ci: do not test L10 using PHP 7.3 Saade 2023-02-15 13:45:29 -03:00
  • a9e6b1bec7 Update ci.yml lukinovec 2023-02-15 16:15:52 +01:00
  • a76911cef1 Don't use PHP 8 with Laravel 10 in CI lukinovec 2023-02-15 16:12:42 +01:00
  • 98e2d2cbf4 Update ci.yml lukinovec 2023-02-15 16:10:15 +01:00
  • f5eeb2337a Use multiple PHP versions lukinovec 2023-02-15 16:02:51 +01:00
  • c84330eb8f Revert ci.yml changes lukinovec 2023-02-15 15:50:26 +01:00
  • 14371f383f Correct Laravel matrix versions lukinovec 2023-02-15 15:45:07 +01:00
  • f5925e757c Use ci.yml from #12 lukinovec 2023-02-15 15:38:20 +01:00
  • 739c30e507 Add PHP version matrix lukinovec 2023-02-15 15:36:38 +01:00
  • b24e2f0391 Delete backupStaticAttributes lukinovec 2023-02-15 15:28:45 +01:00
  • f4b0e2b628 Update phpunit.xml (delete cacheDirectory, use backupStaticAttributes instead of backupStaticProperties) lukinovec 2023-02-15 15:27:17 +01:00
  • 8aa16ca84a Update README Saade 2023-02-15 11:13:38 -03:00
  • e043d0114c Update GitHub Actions for Laravel 10 Saade 2023-02-15 11:13:30 -03:00