I have problem that extensions are not working with Fluent, in this case timestamps:
<?php
namespace App\Mappings;
use App\Models\User;
use LaravelDoctrine\Fluent\EntityMapping;
use LaravelDoctrine\Fluent\Fluent;
class UserMapping extends EntityMapping
{
public function mapFor(): string
{
return User::class;
}
public function map(Fluent $builder): void
{
$builder->increments('id');
$builder->string('name');
$builder->string('email')->unique();
$builder->string('password');
$builder->string('rememberToken')->length(100)->nullable();
$builder->timestamp('emailVerifiedAt')->nullable();
$builder->timestamps();
}
}
I am using Laravel 11 with latest versions of Laravel Doctrine and extensions. I have enabled the extensions from doctrine.php config file.
Hello,
I have problem that extensions are not working with Fluent, in this case timestamps:
I am using Laravel 11 with latest versions of Laravel Doctrine and extensions. I have enabled the extensions from doctrine.php config file.
I tried with both commands:
And got this error:
Composer:
Thanks!