'boolean', 'attempted_at' => 'datetime', ]; public $timestamps = false; /** * Get the character who attempted this crime. */ public function character(): BelongsTo { return $this->belongsTo(Character::class); } /** * Get the crime that was attempted. */ public function crime(): BelongsTo { return $this->belongsTo(Crime::class); } /** * Check if the crime was successful */ public function isSuccessful(): bool { return $this->success; } /** * Check if the crime failed */ public function isFailed(): bool { return !$this->success; } }