CasperSecurity

Current Path : /var/www/hrms.uiet.co.in/app/Models/
Upload File :
Current File : /var/www/hrms.uiet.co.in/app/Models/BankDetails.php

<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;



class BankDetails extends Model
{
    use HasFactory,SoftDeletes;

    protected $dates = ['deleted_at'];
    protected $guarded=[];

    public static function search($search)
    {
        return empty($search) ? static::query()
            : static::query()
                ->where('bank_name', 'like', '%' . $search . '%')
                ->orWhere('bank_ac_no', 'like', '%' . $search . '%')
                ->orWhere('bank_ifsc', 'like', '%' . $search . '%')
                ->orWhere('bank_micr', 'like', '%' . $search . '%');
    }


    //use LogsActivity;
    public function getActivitylogOptions(): LogOptions
    {
        return LogOptions::defaults()
            ->logAll()
            ->useLogName('system')
            ->setDescriptionForEvent(fn(string $eventName) => "This data has been {$eventName}");;
    }

}
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