You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.
Hi, dimsav. Your package is really great. But somehow I just have faced an issue. So, I would like to add timestamps columns to translations table to distinguish the time a certain translation was posted on. But something went wrong when I did it. $entity->translations became empty.
I have something like this:
Schema::create('posts', function(Blueprint$table)
{
$table->increments('id');
$table->string('slug');
// something else here$table->timestamps();
$table->softDeletes();
});
Schema::create('post_translations', function(Blueprint$table)
{
$table->increments('post_translation_id');
$table->integer('post_id')->unsigned();
$table->boolean('active')->default(0);
// title, excerpt and content are in $translatedAttributes as they should$table->string('title');
$table->text('excerpt')->default('');
$table->longText('content');
$table->string('locale')->index();
$table->timestamps();
$table->softDeletes();
$table->unique(['post_id', 'locale']);
$table->foreign('post_id')->references('id')->on('posts')->onDelete('cascade');
});
The text was updated successfully, but these errors were encountered:
Hi, dimsav. Your package is really great. But somehow I just have faced an issue. So, I would like to add timestamps columns to translations table to distinguish the time a certain translation was posted on. But something went wrong when I did it.
$entity->translations
became empty.I have something like this:
The text was updated successfully, but these errors were encountered: