8 Star 90 Fork 24

小丑路人·社区 / laravel-vue-admin

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

laravel-vue-admin

作者

小丑路人

社区

小丑路人社区

在线demo预览

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

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

软件架构

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

介绍

demo站

首页

版本历史记录

西班牙语

请求日志统计

图片选择器功能

数据库管理

备份管理

Hyperf与Laravel版

laravel-vue-admin

Hyperf-后台管理

安装教程

安装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

使用说明

  1. 按月、按年分表的模型,皆不可使用 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();
    }

捐助

支付宝收款码 微信收款码

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request
MIT License Copyright (c) 2020 小丑路人 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.

简介

取消

发行版 (14)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
PHP
1
https://gitee.com/clown-passerby-community/laravel-vue-admin.git
git@gitee.com:clown-passerby-community/laravel-vue-admin.git
clown-passerby-community
laravel-vue-admin
laravel-vue-admin
master

搜索帮助