User can register and invite other user by invitaion code.
- Used Laravel Breeze for Authentication.
- Used middelware for active user.
- Create an invition code followed by validation rules.
- Cheack if the Invite Code is expired.
- Listing a Invition Code.
- User can request for Invite Code.
- User can request Invite Code within a spacific limit.
- User can also check when did they requested for Invite Code.
- User can check how many time his invite code used.
- Blcok the code usage after a certain limit of that code usage.
- Check if user is active.
- Check if code is valide.
- Check the code expiration date.
- Check how many invition code usage remaining.
- Check if code usage limit.
Follow these steps to set up and run the project locally.
Make sure you have the following installed:
- Git
- Composer
- PHP >= 8.*
- MySQL
- Laravel 9.*
-
Clone the GitHub repository
git clone https://github.com/JaberWiki/invite-system.git
-
Install Composer packages:
composer install
-
Create .env file
Duplicate .env.example and rename it to .env.
or
cp .env.example .env
-
Generate encryption key
Run the following command to generate a unique application key.
php artisan key:generate
-
Run migrations
php artisan migrate
-
Add Invite code limit in .env
MAX_INVITE_CODE_LIMIT
-
Start the development server
php artisan serve
This Project is open-sourced software licensed under the MIT license.