noble/app/Models/Post.php

19 lines
321 B
PHP
Raw Normal View History

2023-05-16 15:54:23 +03:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Post extends Model
{
use HasFactory;
protected $fillable=['image','slug'];
public function translations()
{
return $this->hasMany(FlatTranslation::class);
}
}