{"repo":"mateusjunges/laravel-invite-codes","free":true,"listed":false,"github":"https://github.com/mateusjunges/laravel-invite-codes","clone":"git clone https://github.com/mateusjunges/laravel-invite-codes.git","description":"Easily manage invite codes for your Laravel application","language":"PHP","stars":290,"topics":["invites","invite-code","invite-users","laravel","php","hacktoberfest"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Laravel Invite Codes This package allows you to easily manage invite codes for your Laravel application. Sponsor my work! If you think this package helped you in any way, you can sponsor me on GitHub! Documentation - Installation - Usage - Creating invite codes - Set the expiration date of your invite code - Restrict usage to some specific user - Set the maximum allowed usages for an invite code - Create multiple invite codes - Redeeming invite codes - Redeeming invite codes without dispatching events - Customizing how invite codes are generated - Extending the Invite model - Handling invite codes exceptions - Using artisan commands - Tests - Contributing - Changelog - License Installation To get started with Laravel Invite Codes, use Composer to add the package to your project's dependencies: Or add this line in your composer.json, inside the require section: then run composer install . All migrations required for this package are already included. If you need to customize the tables, you can [publish them][migrations] with: and set the config for custom migrations to true , which is false by default. After the migrations have been published you can create the tables on your database by running the migrations: If you change the table names on migrations, please publish the config file and update the tables array. You can publish the config file with: When published, the config/invite-codes.php config file contains: Usage This package provides a middleware called ProtectedByI","default_branch":null,"files":null,"tree":[],"storefront":"/r/mateusjunges","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mateusjunges/laravel-invite-codes/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."}