Spaces:
Running
Running
File size: 577 Bytes
40dca3b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Tagged extends BaseModel
{
protected $table = "taggeds";
protected $fillable =[
'comic_id',
'hashtag_id',
'is_main_tag',
'created_by',
'updated_by',
'created_at',
'updated_at',
];
public function hashTag(){
return $this->belongsTo(Hashtag::class,'hashtag_id');
}
public function comic(){
return $this->belongsTo(Comic::class,'comic_id');
}
}
|