File "ArticleToGroup.php"
Full path: /var/www/html/back/storage/framework/ArticleToGroup.php
File
size: 0.45 KB (464 B bytes)
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor Back
<?php
declare(strict_types=1);
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Support\Carbon;
class ArticleToGroup extends Model
{
protected $table = 'article_to_group';
protected $fillable = [
'article_id',
'article_group_id',
];
public function articleGroup(): BelongsTo
{
return $this->belongsTo(ArticleGroup::class);
}
}