✏️ Edit: Story.php
Path:
/home/thiqat5/dex.thiqatech.com/model/Story.php
Size: 548 B · Modified: 2021-11-03 20:28:12 · Perm: 0644 · Writable
← Back to directory
👁 View
⬇ Download
<?php namespace App\model; use Illuminate\Database\Eloquent\Model; class Story 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; // } }
💾 Save
Cancel
Save as UTF-8, newlines normalized to LF