2024-05-23 14:50:53 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
2024-05-23 17:03:12 +03:00
|
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
2024-05-23 14:50:53 +03:00
|
|
|
|
|
|
|
class Project extends Model
|
|
|
|
{
|
|
|
|
use HasFactory;
|
|
|
|
|
|
|
|
protected $fillable = [
|
|
|
|
'id',
|
|
|
|
'name',
|
|
|
|
'description',
|
|
|
|
'department_id',
|
|
|
|
'created_by_id',
|
|
|
|
];
|
2024-05-23 17:03:12 +03:00
|
|
|
|
|
|
|
public function department(): BelongsTo
|
|
|
|
{
|
|
|
|
return $this->belongsTo(Department::class);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function users()
|
|
|
|
{
|
|
|
|
}
|
2024-05-23 14:50:53 +03:00
|
|
|
}
|