CasperSecurity

Current Path : /var/www/orientalss.com/app/Models/
Upload File :
Current File : /var/www/orientalss.com/app/Models/StoreDocument.php

<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Laratrust\Traits\LaratrustUserTrait;
use Laravel\Scout\Searchable;

class StoreDocument extends Model
{
    use LaratrustUserTrait;
    use HasFactory,SoftDeletes,Searchable;
    public $guarded = [];

    public function toSearchableArray()
    {
        return [
            'doc_reference' => $this->doc_reference,
            'doc_subject' => $this->doc_subject,
            'doc_title' => $this->doc_title,
            'document_type_id' => $this->document_type_id, // Include document type
            'doc_classification_id' => $this->doc_classification_id, // Include document classification
            'received_sent' => $this->received_sent, // Include received/sent status
            'from_to' => $this->from_to, // Include from/to information
            'doc_desc' => $this->doc_desc, // Include document description
        ];
    }
    public function getDocumentType(){
        return $this->belongsTo(DocumentType::class,'document_type_id');
    }

    public function getDocumentClassification(){
        return $this->belongsTo(DocumentClassification::class,'doc_classification_id');
    }
}
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY