CasperSecurity

Current Path : /var/www/orientalss.com/app/Models/
Upload File :
Current File : /var/www/orientalss.com/app/Models/LeaveRequest.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 LeaveRequest extends Model
{
    use HasFactory;
    use SoftDeletes;
    use Searchable;
    use LaratrustUserTrait;
    public $guarded = [];

    public function toSearchableArray()
    {
        return [
            'req_id' => $this->req_id,
            'leave_type' => $this->leave_type,
            'from_date' => $this->from_date,
            'to_date' => $this->to_date,
            'days_for_leave' => $this->days_for_leave,
            'reason' => $this->reason,
        ];
    }
    public function getLeaveType(){
        return $this->belongsTo(LeaveTypes::class,'leave_type');
    }

}
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