Small bugs have been fixed
This commit is contained in:
parent
b553799049
commit
7cb6b100a0
@ -44,7 +44,7 @@ class Project extends Model
|
|||||||
|
|
||||||
public function getReleaseDateAttribute($value): String
|
public function getReleaseDateAttribute($value): String
|
||||||
{
|
{
|
||||||
return $value;
|
return Carbon::parse($value)->format('Y-m-d');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setReleaseDateAttribute($value): void
|
public function setReleaseDateAttribute($value): void
|
||||||
@ -54,7 +54,7 @@ class Project extends Model
|
|||||||
|
|
||||||
public function getUpdateDateAttribute($value): String|null
|
public function getUpdateDateAttribute($value): String|null
|
||||||
{
|
{
|
||||||
return $value;
|
return Carbon::parse($value)->format('Y-m-d');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUpdateDateAttribute($value): void
|
public function setUpdateDateAttribute($value): void
|
||||||
|
@ -21,7 +21,7 @@ class CreateProjectsTable extends Migration
|
|||||||
$table->string('title', 255);
|
$table->string('title', 255);
|
||||||
$table->json('categories')->nullable()->default(null);
|
$table->json('categories')->nullable()->default(null);
|
||||||
$table->string('author', 30);
|
$table->string('author', 30);
|
||||||
$table->json('images')->nullable()->default('{"small":"","medium":"","large":""}');
|
$table->json('images')->nullable()->default(null);
|
||||||
$table->dateTimeTz('release_date')->nullable()->useCurrent();
|
$table->dateTimeTz('release_date')->nullable()->useCurrent();
|
||||||
$table->dateTimeTz('update_date')->nullable()->default(null);
|
$table->dateTimeTz('update_date')->nullable()->default(null);
|
||||||
$table->string('project_url', 255)->nullable()->default(null);
|
$table->string('project_url', 255)->nullable()->default(null);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user