<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Author extends Model
{
    protected $table = 'author';
    protected $guarded = ['id', 'created_at', 'updated_at'];

  
    public function author()
    {
    	//return $this->belongsTo(Country::class, 'country_id');
        return $this->hasoneThrough(Author::class, country::class);
    }

}
