Replies: 1 comment
-
Добавить в Модель public $incrementing = false; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Привет. Моя миграция
Schema::create('users', function (Blueprint $table) { $table->uuid('uuid')->primary()->unique(); //.... $table->timestamps(); });
Вот мой UserResource
public static function form(Form $form): Form { return $form ->schema([ Forms\Components\TextInput::make('uuid'), //..... ]); }
тут я получаю ошибку
Illuminate\Database\QueryException SQLSTATE[22P02]: Invalid text representation: 7 ОШИБКА: неверный синтаксис для типа uuid: "0" (SQL: select * from "users" where "uuid" = 0 and "users"."deleted_at" is null limit 1)
public static function table(Table $table): Table { return $table ->columns([ Tables\Columns\TextColumn::make('uuid'), //..... ]) ->filters([ // ]); }
тут я получаю часть своего uuid
Beta Was this translation helpful? Give feedback.
All reactions