{"repo":"cjmellor/approval","free":true,"listed":false,"github":"https://github.com/cjmellor/approval","clone":"git clone https://github.com/cjmellor/approval.git","description":"Approve new Model data before it is persisted","language":"PHP","stars":371,"topics":["approval","eloquent","laravel","laravel-package","approve"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Approval is a Laravel package that provides a simple way to approve new Model data before it is persisted. Requirements - PHP 8.3 or higher - Laravel 12.4 or higher (or Laravel 13) [!IMPORTANT] As of v2.1, support for Laravel 11 has been dropped. Laravel 11 reached end-of-life on March 12, 2026 and no longer receives security updates. If you're still on Laravel 11, stay on ^2.0 or upgrade your Laravel application before installing this version. The minimum Laravel 12 version is 12.4 , because the package now uses the #[Scope] attribute introduced in that release. Installation You can install the package via composer: You can publish and run the migrations with: Upgrading from v1 If you're upgrading from v1.x to v2.x, please follow the detailed upgrade guide to ensure a smooth transition. Version 2 introduces database schema changes that require running specific commands in the correct order. You can publish the config file with: This is the contents of the published config file: Usage [!NOTE] This package does not approve/deny the data for you, it just stores the new/amended data into the database. It is up to you to decide how you implement a function to approve or deny the Model. Add the MustBeApproved trait to your Model and now the data will be stored in an approvals table, ready for you to approve or deny. For example, you add it to a Post Model and each time a Post is created or updated, all the dirty data will be stored in the database as JSON for you to do something w","default_branch":null,"files":null,"tree":[],"storefront":"/r/cjmellor","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cjmellor/approval/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}