metafroliclabs/laravel-kit 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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 Logo

Laravel Starter Boilerplate

This project provides a starter boilerplate for Laravel applications with essential authentication, profile management, and content page routes.

Installation

  1. Create a new project using Composer:

    composer create-project metafroliclabs/laravel-kit
  2. Setup environment:

    • Configure database and application settings.
  3. Run migrations:

    php artisan migrate
  4. Install Passport (if required for Sanctum):

    php artisan passport:install
  5. 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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-02-14