mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
define NEXUS_START in api
This commit is contained in:
@@ -176,11 +176,19 @@ class User extends Authenticatable
|
|||||||
return $this->hasMany(Message::class, 'receiver');
|
return $this->hasMany(Message::class, 'receiver');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* torrent comments
|
||||||
|
* @return \Illuminate\Database\Eloquent\Relations\HasMany
|
||||||
|
*/
|
||||||
public function comments()
|
public function comments()
|
||||||
{
|
{
|
||||||
return $this->hasMany(Comment::class, 'user');
|
return $this->hasMany(Comment::class, 'user');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* forum posts
|
||||||
|
* @return \Illuminate\Database\Eloquent\Relations\HasMany
|
||||||
|
*/
|
||||||
public function posts()
|
public function posts()
|
||||||
{
|
{
|
||||||
return $this->hasMany(Post::class, 'userid');
|
return $this->hasMany(Post::class, 'userid');
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
define('NEXUS_START', LARAVEL_START);
|
||||||
define('IN_NEXUS', false);
|
define('IN_NEXUS', false);
|
||||||
|
|
||||||
require dirname(__DIR__) . '/include/constants.php';
|
require dirname(__DIR__) . '/include/constants.php';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user