mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +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');
|
||||
}
|
||||
|
||||
/**
|
||||
* 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');
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
define('NEXUS_START', LARAVEL_START);
|
||||
define('IN_NEXUS', false);
|
||||
|
||||
require dirname(__DIR__) . '/include/constants.php';
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user