From cca5002379a9c1b698e896e3a77ed1baca0efb71 Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq.com> Date: Thu, 30 Apr 2026 10:06:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=962?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/ParkingLicensePlate.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Models/ParkingLicensePlate.php b/app/Models/ParkingLicensePlate.php index bfc5355..344e641 100644 --- a/app/Models/ParkingLicensePlate.php +++ b/app/Models/ParkingLicensePlate.php @@ -5,7 +5,6 @@ namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; -use Illuminate\Support\Collection; class ParkingLicensePlate extends Model { @@ -29,7 +28,7 @@ class ParkingLicensePlate extends Model return self::query()->where('id', $id)->value('number') ?? ''; } - public static function getId($number): array|Collection + public static function getId($number) { return self::query()->where('number', 'like', "%{$number}%")->pluck( 'id'