<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class MetaConnection extends Model {
 protected $fillable=['meta_user_id','meta_user_name','access_token','token_expires_at','status','last_synced_at','last_error'];
 protected $casts=['access_token'=>'encrypted','token_expires_at'=>'datetime','last_synced_at'=>'datetime'];
 public function pages(){return $this->hasMany(MetaPage::class);}
}
