Added the ability to add project information.

This commit is contained in:
2024-04-14 15:27:51 +05:00
parent b7d0a2453e
commit 2769585de0
35 changed files with 862 additions and 14 deletions
+5
View File
@@ -47,4 +47,9 @@ final class Project extends Model implements StorageContract
{
return $this->hasMany(ProjectLanguage::class);
}
public function contents(): HasMany
{
return $this->hasMany(ProjectContent::class);
}
}
@@ -0,0 +1,19 @@
<?php declare(strict_types=1);
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
final class ProjectContent extends Model
{
use HasFactory, SoftDeletes;
protected $table = 'project_content';
protected $fillable = [
'title',
'description',
];
}