http://laravel-vue-admin.cnpscy.com/admin
admin
123456
如果无法登录,请在评论区@我重置密码。
- 编程语言:
PHP7.3+
- 后端框架:
Laravel8
- 前端Vue框架:
vue-element-admin
- Nodejs v14.*
- 安装 npm 包:
npm install
- 热更新vue项目:
npm run watch-poll
- vue无法执行:可尝试:
- npm rebuild node-sass
tui-editor
此包引起的
- npm rebuild node-sass
- vue无法执行:可尝试:
- 命令行:
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();
}
- Fork 本仓库
- 新建 Feat_xxx 分支
- 提交代码
- 新建 Pull Request