{"id":94984,"library":"sofa-hookable","title":"Sofa Hookable","description":"Laravel Eloquent hooks system, allowing you to attach callbacks to model events.","status":"active","version":"7.0.1","language":"php","source_language":null,"source_url":"https://github.com/jarektkaczyk/hookable","tags":["laravel","eloquent","hooks","events"],"install":[{"cmd":"composer require sofa/hookable","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"Hookable","correct":"use Sofa\\Hookable\\Hookable;"}],"quickstart":{"code":"use Sofa\\Hookable\\Hookable;\n\nclass User extends \\Illuminate\\Database\\Eloquent\\Model {\n    use Hookable;\n}\n\nUser::hook('creating', function ($user) {\n    $user->name = strtoupper($user->name);\n});","lang":"php","description":"Add a hook to a Laravel Eloquent model that transforms the name before creation."},"warnings":[],"env_vars":null,"search_vec":"'allow':7 'attach':10 'callback':11 'eloqu':4,16 'event':14,18 'hook':5,17 'hookabl':2 'laravel':3,15 'model':13 'sofa':1 'system':6","created_at":"2026-06-19T10:16:07.760013+00:00","updated_at":"2026-06-19T10:16:07.760013+00:00","problems":[],"ecosystem":"packagist","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/jarektkaczyk/hookable","github":"https://github.com/jarektkaczyk/hookable","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["orm","web-framework"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}