11 Star 58 Fork 29

杨洋 / Ity

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

ITY

基于laravel+vue的基础后台, 前后端分离, 欢迎fork&start&pull requests

DEMO

https://ityphp.newbanri.com/

账号 look 密码 123456

PHP

https://gitee.com/pleaseyang/Ity

https://github.com/pleaseyang/Ity

VUE

https://gitee.com/pleaseyang/ItyWeb

https://github.com/pleaseyang/ItyWeb

功能模块

RBAC权限

RBAC权限 整合 laravel-permission 制作的权限角色, 管理员可绑定角色, 也可以单独设置权限

操作记录

操作记录 整合 laravel-activitylog 制作的操作记录, 可查看修改前后的JSON

文件管理

文件管理 仿照 阿里云OSS 界面, 制作的文件管理页面

站内信

站内信 LARAVEL Notifiable Trait 搭建

系统布局

系统布局 vue-element-admin 提供的功能, 二次修改

系统异常

系统异常 获取异常后记录到DB中

搭建

  1. composer install
  2. cp .env.example .env
  3. php artisan key:generate
  4. php artisan jwt:secret
  5. php artisan migrate
  6. php artisan db:seed
  7. php artisan storage:link (符号连接)

Ide-Helper

  1. php artisan ide-helper:generate (为 Facades 生成注释)
  2. php artisan ide-helper:models (为数据模型生成注释)
  3. php artisan ide-helper:meta (生成 PhpStorm Meta file)

代码生成器

新增代码生成器(测试版)。可进行CURD,加快开发效率。 系统异常

部署

  1. APP_ENV=production
  2. APP_DEBUG=false
  3. QUEUE_CONNECTION=redis
  4. REDIS_CLIENT=phpredis (可选)
  5. composer install --optimize-autoloader --no-dev 自动加载器改进
  6. php artisan config:cache 优化配置加载
  7. php artisan route:cache 优化路由加载
  8. php artisan event:cache 优化事件加载
  9. composer dump-autoload --optimize 优化自动加载

维护

  1. php artisan down 维护模式
    1. php artisan down --secret="1630542a-246b-4b66-afa1-dd72a4c43515" 指定维护模式的绕过令牌
    2. 访问 https://example.com/1630542a-246b-4b66-afa1-dd72a4c43515
  2. php artisan up 关闭维护模式
  3. php artisan activitylog:clean --days=7 清理操作日志
  4. php artisan exceptionerror:clean --days=7 清理异常日志

WebSocket

  1. WINDOWS: start_for_win.bat
  2. LINUX: php artisan workerman start --d
  3. URI: ws://IP:2346?lang=LANG&token=TOKEN
  4. SEND: {"route": "route.name", "data": data}

致谢

请作者喝咖啡

系统异常

MIT License Copyright (c) 2022 杨洋 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.

简介

基于laravel + vue的基础后台,前后端分离,欢迎fork&start,不合理的地方也欢迎批评指正 展开 收起
PHP 等 3 种语言
MIT
取消

发行版 (2)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
PHP
1
https://gitee.com/pleaseyang/Ity.git
git@gitee.com:pleaseyang/Ity.git
pleaseyang
Ity
Ity
master

搜索帮助