From dbe8119f5283fbdcbaa88f9336e209feeca91842 Mon Sep 17 00:00:00 2001 From: Vincent Verbruggen Date: Wed, 26 Nov 2025 15:12:40 +0100 Subject: [PATCH] vault backup: 2025-11-26 15:12:40 --- Career/Resources/Packages/Holidays.md | 23 +++++++++++++++++-- .../Packages/Laravel Tagged Cache.md | 18 +++++++++++++++ ...nimal Identity Map for Laravel Eloquent.md | 16 ++++++++++++- Career/Resources/Packages/Recurr.md | 18 +++++++++++++-- Career/Resources/Packages/Rewind.md | 22 ++++++++++++++++-- .../Resources/Packages/Rich Test Laravel.md | 19 +++++++++++++-- 6 files changed, 107 insertions(+), 9 deletions(-) create mode 100644 Career/Resources/Packages/Laravel Tagged Cache.md diff --git a/Career/Resources/Packages/Holidays.md b/Career/Resources/Packages/Holidays.md index 5d2f4b4..755bb10 100644 --- a/Career/Resources/Packages/Holidays.md +++ b/Career/Resources/Packages/Holidays.md @@ -1,3 +1,22 @@ - +https://github.com/spatie/holidays -#Carbon #TimeKeeping \ No newline at end of file +Calculate public holidays for any country. Provides a unified interface to determine non-working holidays without maintaining separate holiday databases. + +## Features +- Multi-country support via ISO 3166-1 codes +- Check if a specific date is a holiday +- Holiday names with localization support +- Query holidays within date ranges +- Region-specific holidays (e.g., German states) + +## Usage +```php +Holidays::for('be')->get(); // Get all Belgian holidays +Holidays::for('nl')->isHoliday('2024-01-01'); // Check if date is holiday +``` + +```bash +composer require spatie/holidays +``` + +#php #laravel #holidays #calendar #dates #scheduling #localization #spatie diff --git a/Career/Resources/Packages/Laravel Tagged Cache.md b/Career/Resources/Packages/Laravel Tagged Cache.md new file mode 100644 index 0000000..9c22139 --- /dev/null +++ b/Career/Resources/Packages/Laravel Tagged Cache.md @@ -0,0 +1,18 @@ +https://github.com/BrekiTomasson/laravel-tagged-cache + +A wrapper around Laravel's cache that simplifies caching within Eloquent models. Uses cache tags for automatic differentiation instead of complex key naming conventions. + +## Features +- Trait-based integration (`HasTaggedCache`) for models +- Automatic tag generation based on model and ID +- Auto-flush cache when specified attributes change +- Auto-flush on model deletion + +## Requirements +Requires a cache driver that supports tags (Redis, Memcached). Does not work with file, DynamoDB, or database drivers. + +```bash +composer require brekitomasson/laravel-tagged-cache +``` + +#laravel #cache #redis #memcached #eloquent #tags #model-caching #invalidation diff --git a/Career/Resources/Packages/Minimal Identity Map for Laravel Eloquent.md b/Career/Resources/Packages/Minimal Identity Map for Laravel Eloquent.md index 676f419..a58078f 100644 --- a/Career/Resources/Packages/Minimal Identity Map for Laravel Eloquent.md +++ b/Career/Resources/Packages/Minimal Identity Map for Laravel Eloquent.md @@ -1 +1,15 @@ -https://ollieread.com/articles/a-minimal-identity-map-for-laravel-eloquent \ No newline at end of file +https://ollieread.com/articles/a-minimal-identity-map-for-laravel-eloquent + +Implementation pattern (not a package) that ensures each database row has a unique representation in memory. Multiple queries for the same row return the identical object instance rather than separate copies. + +## Problem Solved +Without an identity map, Eloquent creates multiple instances of the same database row. If you update a User model in one place, changes are not reflected in other places holding a different instance of the same row. + +## How It Works +- Static registry stores model instances mapped by class name and primary key +- Hooks capture newly queried models via `newFromBuilder()` +- Freshly created models added via the `created` event +- Deleted models removed via `deleting`/`forceDeleting` events +- Subsequent queries update existing instances rather than creating duplicates + +#laravel #eloquent #pattern #identity-map #orm #caching #memory diff --git a/Career/Resources/Packages/Recurr.md b/Career/Resources/Packages/Recurr.md index 6d161ec..322cb1f 100644 --- a/Career/Resources/Packages/Recurr.md +++ b/Career/Resources/Packages/Recurr.md @@ -1,3 +1,17 @@ - +https://github.com/simshaun/recurr -#Carbon #TimeKeeping \ No newline at end of file +PHP library for working with recurrence rules (RRULE, RFC 5545 standard) and converting them into DateTime objects. Useful for calendar applications and scheduling systems. + +## Features +- Parse and create RRULE recurrence rules +- Transform rules into DateTime collections +- Generate human-readable descriptions of recurrence patterns +- Multi-language support for text output +- Apply constraints and filters (Before, After, Between) +- Handles edge cases like month-end dates + +```bash +composer require simshaun/recurr +``` + +#php #rrule #recurrence #calendar #scheduling #datetime #recurring-events diff --git a/Career/Resources/Packages/Rewind.md b/Career/Resources/Packages/Rewind.md index 96a1b01..c7dde53 100644 --- a/Career/Resources/Packages/Rewind.md +++ b/Career/Resources/Packages/Rewind.md @@ -1,3 +1,21 @@ - +https://github.com/avocet-shores/laravel-rewind -#Versioning #packages \ No newline at end of file +Versioning package for Laravel Eloquent models. Automatically tracks model changes and allows jumping backwards or forwards through version history. + +## Features +- Rewind to previous versions or fast-forward to newer ones +- Jump directly to specific version numbers +- Uses partial diffs + full snapshots for storage efficiency +- Thread-safe with cache locking +- Exclude sensitive attributes (passwords, tokens) from versioning +- Clone models at specific historical points +- Non-destructive linear history + +## Usage +Add the `Rewindable` trait to your Eloquent model. + +```bash +composer require avocet-shores/laravel-rewind +``` + +#laravel #eloquent #versioning #audit #history #changelog #undo diff --git a/Career/Resources/Packages/Rich Test Laravel.md b/Career/Resources/Packages/Rich Test Laravel.md index b45cbff..40a5a3b 100644 --- a/Career/Resources/Packages/Rich Test Laravel.md +++ b/Career/Resources/Packages/Rich Test Laravel.md @@ -1,3 +1,18 @@ - +https://github.com/tonysm/rich-text-laravel -#WYSIWYG +Integrates the Trix Editor with Laravel, inspired by Rails' Action Text. Provides a complete solution for managing rich text content with attachments. + +## Features +- Store rich text content separately from models using dedicated RichText model +- Automatic attachment extraction and content minimization +- Encrypted rich text attributes support +- Content attachments with SGID (Signed Global ID) +- Image galleries and link extraction +- Blade components for Trix input +- Eager loading via `withRichText()` scope + +```bash +composer require tonysm/rich-text-laravel +``` + +#laravel #trix #wysiwyg #rich-text #editor #attachments #content