小丑路人·laravel-vue-admin管理系统

源码仓库

{success} gitee仓库·laravel-vue-admin管理系统


{primary} gitee仓库·hyperf-vue-admin管理系统

作者小丑路人

https://www.cnpscy.com

小丑路人社区

https://bbs.cnpscy.com

在线demo预览

http://laravel-vue-admin.cnpscy.com/admin
admin
123456

如果无法登录,请在评论区@我重置密码。

软件架构

  • 编程语言:PHP7.3+
  • 后端框架: Laravel8
  • 前端Vue框架:vue-element-admin
  • Nodejs v14.*

介绍

demo站

首页

版本历史记录

西班牙语

请求日志统计

图片选择器功能

数据库管理

备份管理

安装教程

安装Vue
  • 安装 npm 包:npm install
  • 热更新vue项目:npm run watch-poll
    • vue无法执行:可尝试:
      • npm rebuild node-sass
        • tui-editor 此包引起的
PHP设置
  • 命令行:composer install
  • 命令行:cp .env.example .env
  • 命令行,生成 APP_KEY:php artisan key:generate
  • 命令行,JWT的key:php artisan jwt:secret
  • 同步导入数据表:php artisan sync:database:tables
站点配置
  • 站点解析目录:public
  • 访问网址:你的域名/admin
  • 定时任务:
    • 自动按月分表:php artisan command:autotablebuild
    • 或者使用任务调度:php artisan schedule:run

部署优化

  • 配置信息缓存 php artisan config:cache
  • 路由缓存 php artisan route:cache
  • 类映射加载优化 php artisan optimize
  • 自动加载优化 composer dumpautoload

使用说明

  • 按月、按年分表的模型,皆不可使用 with,可使用 load 代替,static::query 会重新 实例化当前模型,之前设置的分表名称将被替换。

    具体原因看代码:

    /**
     * Begin querying a model with eager loading.
     *
     * @param  array|string  $relations
     * @return \Illuminate\Database\Eloquent\Builder
     */
    public static function with($relations)
    {
        return static::query()->with(
            is_string($relations) ? func_get_args() : $relations
        );
    }
    
    ······
    
    /**
     * Begin querying the model.
     *
     * @return \Illuminate\Database\Eloquent\Builder
     */
    public static function query()
    {
        return (new static)->newQuery();
    }

捐助

支付宝收款码 微信收款码