1 Star 0 Fork 110

kimlong / lara-watcher

forked from celaraze / laravel-box 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Laravel Box

Laravel 后台开发整合包,集成 dcat-admin、JWT、iseed、easy-wechat 以及 laravel-debugbar,省去配置过程,开箱即用。

版本可直接参考 composer.json 中的配置。

使用

composer create-project celaraze/laravel-box 项目名

php artisan admin:install

集成配置

Laravel

box 完成了 Laravel 的本地化配置,时区为 Asia/Shanghai,默认语言为 zh_CN

DcatAdmin

box 完成了 DcatAdmin 的部署任务,并且对登陆页面做了还原,现在与其 demo 站点展示的页面一致。

JWT

box 将 JWT 与 DcatAdmin 完美整合,使用 admin_users 表的 usernamepassword 对用户信息进行鉴权。

基础鉴权接口控制器:app/Http/Controllers/AuthController

基础鉴权接口路由:routes/api.php

名称 方法 地址 描述
登录 POST /api/auth/login 用户登录,获取 JWT 。
注销 POST /api/auth/logout 用户注销。
当前用户信息 POST /api/auth/me 返回当前登录用户的信息。
刷新token POST /api/auth/refresh 生成新的 token,生成的 token 不会禁用之前可用的 token,可平行使用。

iseed

iseed 是一个便捷的数据库填充生成工具,可以快速的将数据库表内的现有数据导出为 database/seeders 下的填充文件,从而可用 php artisan db:seed 命令实现应用数据预填充。

例如,应用开发完成后,需要预填充菜单和权限信息,那么我们可以使用 php artisan iseed admin_menu,admin_permissions 命令来实现填充数据的生成作业。

截图

MIT License Copyright (c) 2021 celaraze Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Lara Watcher是一个轻量的服务(器)状态维护平台。灵感源于模仿 Apple Services 来实时展示相关服务的运行情况。这是一个独立出来的模块,更完整的功能请参考 https://github.com/Celaraze/Chemex 展开 收起
PHP
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
PHP
1
https://gitee.com/gkl_kimlong/lara-watcher.git
git@gitee.com:gkl_kimlong/lara-watcher.git
gkl_kimlong
lara-watcher
lara-watcher
main

搜索帮助