define NEXUS_START in api

This commit is contained in:
xiaomlove
2021-05-16 00:35:48 +08:00
parent 33e99516b6
commit 17e92f885b
2 changed files with 9 additions and 1 deletions

View File

@@ -176,11 +176,19 @@ class User extends Authenticatable
return $this->hasMany(Message::class, 'receiver');
}
/**
* torrent comments
* @return \Illuminate\Database\Eloquent\Relations\HasMany
*/
public function comments()
{
return $this->hasMany(Comment::class, 'user');
}
/**
* forum posts
* @return \Illuminate\Database\Eloquent\Relations\HasMany
*/
public function posts()
{
return $this->hasMany(Post::class, 'userid');

View File

@@ -1,7 +1,7 @@
<?php
define('NEXUS_START', LARAVEL_START);
define('IN_NEXUS', false);
require dirname(__DIR__) . '/include/constants.php';
/*