<?php

namespace App\model;

use Illuminate\Database\Eloquent\Model;

class Notification extends Model
{
    

    // protected $table = 'orders';
//     protected $hidden = ['Prodcuts','Shops','shop','customer_id','customer','Customers'];
    protected $appends = ['isSeen'];


    public function getisSeenAttribute( )
    {
           $isSeen = False;
           if ( $this -> seenCounter  > 0) $isSeen = True;
           $this -> seenCounter += 1 ;
           $this-> save ();
        return $isSeen;
       
    }
   
  
}
