{"repo":"madebyclowd/laravel-auto-sequence","free":true,"listed":false,"github":"https://github.com/madebyclowd/laravel-auto-sequence","clone":"git clone https://github.com/madebyclowd/laravel-auto-sequence.git","description":"Generate sequential invoice/order numbers (like INV-2026-0001) for Laravel Eloquent models without duplicates.","language":"PHP","stars":16,"topics":["autoincrement","concurrency","eloquent","erp","invoice-number","laravel","locking","redis-lock","sequence","soft-deletes"],"license":"MIT","category":"databases-storage","readme_excerpt":"Laravel AutoSequence Automatically generate custom, sequential numbers (like INV-2026-0001 , ORD-999 , etc.) for your Laravel models. It is completely automatic and guarantees zero duplicate numbers and no accidental gaps , even when thousands of users are placing orders or creating invoices at the exact same millisecond. --- Why not just use the normal auto-increment id ? Using a model's default database id (1, 2, 3...) is fine for relationships, but a bad idea to show to your users because: 1. It leaks data : Your customers will know exactly how many invoices or orders you have processed. 2. It is unpredictable : It might start at 1 in your local testing database but start at 14,000 on production. 3. It is boring : You can't customize it to include the current year, a department code, or dynamic prefixes (e.g., you can't easily turn id = 5 into INV-2026-NY-0005 ). This package solves this by generating a separate, beautifully formatted number column for you (like invoice number ), while ensuring two simultaneous database queries never try to claim the exact same number. --- Features No duplicate numbers, ever. If 1,000 people click \"checkout\" at the exact same second, everyone still gets their own unique number. The package locks the counter (using the database, or Redis) so two people can never grab the same number by accident. Fewer database trips (optional). It can hand out numbers in batches of 50 (or any amount you choose) and give them out from memory instead of askin","default_branch":null,"files":null,"tree":[],"storefront":"/r/madebyclowd","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/madebyclowd/laravel-auto-sequence/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."}