You've already forked lubo_comment_query
init
This commit is contained in:
13
app/Models/Videos.php
Normal file
13
app/Models/Videos.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Videos extends Model
|
||||
{
|
||||
public function comments(): \Illuminate\Database\Eloquent\Relations\HasMany
|
||||
{
|
||||
return $this->hasMany(VideoComments::class, "aid", "id");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user