Fetch the repository succeeded.
Software architecture description
安装 npm 包:npm install
热更新vue项目:npm run watch-poll
composer install
cp .env.example .env
php artisan key:generate
php artisan jwt:secret
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
);
}
Sign in for post a comment
Comments ( 3 )