2026-05-08 10:16:46 +08:00
2026-05-08 10:16:46 +08:00
2026-05-08 10:16:46 +08:00
2026-05-08 10:16:46 +08:00
2026-05-08 10:16:46 +08:00
2026-05-08 10:16:46 +08:00
2026-05-08 10:16:46 +08:00
2026-05-08 10:16:46 +08:00
2026-05-08 10:16:46 +08:00
2026-05-08 10:16:46 +08:00

Laravel Logo

Build Status Total Downloads Latest Stable Version License

About Laravel

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:

Laravel is accessible, powerful, and provides tools required for large, robust applications.

Learning Laravel

Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.

In addition, Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.

You can also watch bite-sized lessons with real-world projects on Laravel Learn, where you will be guided through building a Laravel application from scratch while learning PHP fundamentals.

Agentic Development

Laravel's predictable structure and conventions make it ideal for AI coding agents like Claude Code, Cursor, and GitHub Copilot. Install Laravel Boost to supercharge your AI workflow:

composer require laravel/boost --dev

php artisan boost:install

Boost provides your agent 15+ tools and skills that help agents build Laravel applications while following best practices.

本地开发(可复制启动)

本仓库根目录(即含 artisanlotterLaravel 目录)开 3 个终端,每段整段复制即可。若已用 Herd / Valet / Sail / 自有 Web 服务器指到 public,可不跑「终端 1」。

前置(首次)cp .env.example .envcomposer installphp artisan key:generatephp artisan migrate(及你的库表/种子)。

终端 1 — HTTP API

php artisan serve

终端 2 — WebSocket.envBROADCAST_CONNECTION=reverb 时必开)

php artisan reverb:start

终端 3 — 任务调度(draw.countdown 每秒 + lottery:draw-tick 每分钟)

php artisan schedule:work

仅用系统 cron 每分钟执行一次 schedule:run 无法覆盖「每秒」的 lottery:hall-countdown,开发大厅实时倒计时时请用 schedule:work(或生产上等价常驻调度进程)。

只做 HTTP / 降级轮询、不测 WebSocket 时:终端 2、3 可先不开;要完整大厅 WS三项都开

后台权限体检

后台权限现在提供了一条可直接接入 CI 的体检命令,用来检查:

  • 受保护后台路由是否都已登记到 admin_api_resources
  • permission_required 资源是否已绑定 admin_api_resource_bindings
  • admin_role_menu_actionsadmin_role_api_resources 是否漂移

本地可直接执行:

php artisan lottery:admin-auth-audit

或通过 Composer 脚本执行:

composer test:admin-auth

如果后续接 GitHub Actions、GitLab CI 或其他流水线,直接复用 composer test:admin-auth 即可。

Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.

Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via taylor@laravel.com. All security vulnerabilities will be promptly addressed.

License

The Laravel framework is open-sourced software licensed under the MIT license.

Description
No description provided
Readme 3.5 MiB
Languages
PHP 97%
Blade 2.7%
JavaScript 0.2%