Add regression test for unique() column type resolution (#1787)

Confirms string()->unique() correctly resolves to string type.
Related to barryvdh/laravel-ide-helper#1747

Co-authored-by: Youssef Mansour <[email protected]>
This commit is contained in:
Youssef Mansour
2026-07-10 10:41:38 +02:00
committed by GitHub
co-authored by Youssef Mansour
parent 3f742fd665
commit 04c8d5dd2f
4 changed files with 88 additions and 0 deletions
@@ -0,0 +1,21 @@
<?php
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class UsersUniqueTable extends Migration
{
public function up(): void
{
Schema::create('users_unique', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('email')->unique();
$table->string('password');
$table->timestamps();
});
}
}