metafroliclabs/laravel-kit
最新稳定版本:v1.1.1
Composer 安装命令:
composer create-project metafroliclabs/laravel-kit
包简介
This project provides a starter boilerplate for Laravel applications with essential authentication, profile management, and content page routes.
README 文档
README
Laravel Starter Boilerplate
This project provides a starter boilerplate for Laravel applications with essential authentication, profile management, and content page routes.
Installation
-
Create a new project using Composer:
composer create-project metafroliclabs/laravel-kit
-
Setup environment:
- Configure database and application settings.
-
Run migrations:
php artisan migrate
-
Install Passport (if required for Sanctum):
php artisan passport:install
-
Start the application:
php artisan serve
Available Routes
Authentication Routes
| Method | Endpoint | Controller | Description |
|---|---|---|---|
| POST | /signup |
AuthController | User signup |
| POST | /login |
AuthController | User login |
| POST | /logout |
AuthController | User logout (auth) |
Middleware: auth:sanctum is required for /logout.
Password Recovery Routes
| Method | Endpoint | Controller | Description |
|---|---|---|---|
| POST | /forget-password |
ForgetPasswordController | Request password reset |
| POST | /verify-code |
ForgetPasswordController | Verify reset code |
| POST | /set-password |
ForgetPasswordController | Reset password |
Profile Management (Protected)
| Method | Endpoint | Controller | Description |
|---|---|---|---|
| GET | /get-profile |
ProfileController | Get user profile |
| POST | /edit-profile |
ProfileController | Edit user profile |
| POST | /change-password |
ProfileController | Change password |
| GET | /notifications/all/list |
ProfileController | List all notifications |
| GET | /notifications/read/list |
ProfileController | List read notifications |
| GET | /notifications/unread/list |
ProfileController | List unread notifications |
| GET | /notifications/unread/count |
ProfileController | Get unread notification count |
| POST | /notifications/{id} |
ProfileController | Mark a single notification as read/unread |
| POST | /notifications/read |
ProfileController | Mark all notifications as read |
All routes require auth:sanctum middleware.
Page Routes (Protected)
| Method | Endpoint | Controller | Description |
|---|---|---|---|
| POST | /contact-us |
PageController | Submit contact form |
| GET | /content |
PageController | Get static content |
auth:sanctum middleware is required.
License
This project is licensed under the MIT License.
统计信息
- 总下载量: 17
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-02-14