Boilerplate is a pre-built authentication system that provides reusable functionality for login, sign-up, email verification, OTP authentication, user profile management, and logout. It is designed to be easily integrated into any Laravel project, allowing developers to focus on core business logic instead of implementing authentication from scratch.
- User Registration & Login
- Email Verification
- Profile Management
- Logout Functionality
Follow these steps to set up and use the application:
-
Clone the repository:
git clone https://github.com/ColoredCow/laravel-init.git
-
Navigate into the project directory:
cd laravel-init
-
Install dependencies using Composer:
composer install
-
Copy the example environment file:
cp .env.example .env
-
Update the
.env
file with your database credentials:DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=laravel_init DB_USERNAME=root DB_PASSWORD=
-
Configure your mail settings for email verification: Registration requires email verification, so ensure your mail settings are correctly configured in the
.env
file:MAIL_MAILER=smtp MAIL_SCHEME=null MAIL_HOST=localhost MAIL_PORT=1025 MAIL_USERNAME=maildev MAIL_PASSWORD=maildev
-
Generate the application key:
php artisan key:generate
-
Run database migrations:
php artisan migrate
-
(Optional) Seed the database with default data:
php artisan db:seed
-
Start the development server:
- Using
serve
php artisan serve
Your application should now be running at http://127.0.0.1:8000
- Using Laravel Valet
Your application should now be running at https://laravel-init.test
valet link laravel-init valet secure laravel-init
- Using
You can use the following test admin credentials to log in:
- Email: admin@admin.com
- Password: admin@123
Contributions are welcome! Feel free to fork this repository, submit issues, or make pull requests to improve the Boiler Plate application.
For any questions or support, feel free to reach out to the repository maintainers or open an issue.