File "RelatedTopic.php"
Full Path: /home/school/sites/sad3.ayagoz-roo.kz/core/app/Models/RelatedTopic.php
File size: 333 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class RelatedTopic extends Model
{
use HasFactory;
//Relation to Related Topics one topic
public function topic()
{
return $this->belongsTo('App\Models\Topic', 'topic2_id');
}
}