<?php

namespace App\Models;

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

use Illuminate\Support\Facades\DB;
class modelLogin extends Model
{
    //use HasFactory;
    public static function loginuser($username, $password)
    {
        return DB::select("SELECT * FROM usersdetails WHERE Username = ? and Password = ?", [$username, $password]);
    }
}
