{success} gitee仓库·laravel-vue-admin管理系统
{primary} gitee仓库·hyperf-vue-admin管理系统
小丑路人
http://laravel-vue-admin.cnpscy.com/admin
admin
123456
如果无法登录,请在评论区@我重置密码。
PHP7.3+
Laravel8
vue-element-admin
npm install
npm run watch-poll
tui-editor
此包引起的composer install
cp .env.example .env
php artisan key:generate
php artisan jwt:secret
php artisan sync:database:tables
public
你的域名/admin
php artisan command:autotablebuild
php artisan schedule:run
按月、按年分表的模型,皆不可使用 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();
}