Зачем два псевдика я не придумала.
Лучше бы псевдоэлементы вместо пустых div.
Ещё вариант - масками (mask + mask-composite).
public function getKeyType()
{
if (in_array($this->getKeyName(), $this->uniqueIds())) {
return 'string';
}
return $this->keyType;
}
покажите вашу миграцию или таблицу
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('agreements', function (Blueprint $table) {
$table->uuid('id')->primary();
$table->foreignUuid('agreement_type_id')->constrained();
$table->boolean('active')->default(false);
$table->enum('form', ['file', 'link', 'text'])->nullable();
$table->string('link')->nullable();
$table->mediumText('text_md')->nullable();
$table->mediumText('text_html')->nullable();
$table->string('path')->nullable();
$table->string('mime_type')->nullable();
$table->mediumText('whats_new_md')->nullable();
$table->mediumText('whats_new_html')->nullable();
$table->timestamps();
});
}
модели id, назван как id, да и ещё как int
class Agreement extends Model
{
use HasFactory, HasUuids;
protected $guarded = [];
protected $casts = [
'active' => 'boolean',
'form' => AgreementForm::class
];
protected $attributes = [
'active' => false,
];
//...
Вот думаю может мне просто установить реакт и реактдум и потом плагин vite react и просто создать типовую структуру реакт проекта с папками dist,public,src, и файлом index.html прям в корне проекта ларавел, рядом с vite config
из-за отсутствия бд начинает кидать ошибку