PageTranslation.php 249 B

1234567891011121314
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class PageTranslation extends Model
  5. {
  6. protected $fillable = ['page_id', 'title', 'content', 'lang'];
  7. public function page(){
  8. return $this->belongsTo(Page::class);
  9. }
  10. }