$tasks * * @method static ProjectFactory factory() */ class Project extends Model { use HasFactory; use HasUuids; /** * The attributes that should be cast. * * @var array */ protected $casts = [ 'name' => 'string', 'color' => 'string', ]; /** * @return BelongsTo */ public function organization(): BelongsTo { return $this->belongsTo(Organization::class, 'organization_id'); } /** * @return BelongsTo */ public function client(): BelongsTo { return $this->belongsTo(Client::class, 'client_id'); } /** * @return HasMany */ public function tasks(): HasMany { return $this->hasMany(Task::class); } }