This happens when i try to create a user fillament
PS C:\Users\Ricardo Pinheiro\Desktop\My Stuff\Php_Projects\Estagio_8220611> php artisan make:filament-user
Name:
❯
Email address:
❯
Password:
❯
Illuminate\Database\QueryException
SQLSTATE[HY000]: General error: 20 datatype mismatch (Connection: sqlite, SQL: insert into "users" ("name", "email", "password", "id", "updated_at", "created_at") values (admin, admin123@gmail.com, $2y$12$8uEr9q4YsTL2dcjvnG508OlqDMg3lYUzhi/gy16LzU7ErG/7B5YiC, 01978f48-9e35-715e-a486-e5fb5a7cb7f8, 2025-06-20 21:39:50, 2025-06-20 21:39:50))
at vendor\laravel\framework\src\Illuminate\Database\Connection.php:822 818▕ $this->getName(), $query, $this->prepareBindings($bindings), $e 819▕ ); 820▕ } 821▕ ➜ 822▕ throw new QueryException( 823▕ $this->getName(), $query, $this->prepareBindings($bindings), $e 824▕ ); 825▕ } 826▕ } 1 vendor\laravel\framework\src\Illuminate\Database\Connection.php:568 PDOException::("SQLSTATE[HY000]: General error: 20 datatype mismatch") 2 vendor\laravel\framework\src\Illuminate\Database\Connection.php:568 PDOStatement::execute()
at vendor\laravel\framework\src\Illuminate\Database\Connection.php:822 818▕ $this->getName(), $query, $this->prepareBindings($bindings), $e 819▕ ); 820▕ } 821▕ ➜ 822▕ throw new QueryException( 823▕ $this->getName(), $query, $this->prepareBindings($bindings), $e 824▕ ); 825▕ } 826▕ } 1 vendor\laravel\framework\src\Illuminate\Database\Connection.php:568 PDOException::("SQLSTATE[HY000]: General error: 20 datatype mismatch") 2 vendor\laravel\framework\src\Illuminate\Database\Connection.php:568 PDOStatement::execute()
7 Replies
i am building a fillament and laravel project and whenever i try to run that command it doesnt let me create a admin user
its going to be a simple admin dashboard the idea of the project
Did you update your User model and the migrations to use UUIDs?
with this command : php artisan migrate ?
i am going too share the user model i currently have :
No, if you want to use UUIDs for the user there’s a few things that need to be updated.
wich sections ??
i fixed thnks