'int', 'is_successful' => 'bool', 'bytes' => 'int', 'ignored_files' => 'array', ]; /** * @var array */ protected $dates = [ 'completed_at', ]; /** * @var array */ protected $attributes = [ 'is_successful' => true, 'sha256_hash' => null, 'bytes' => 0, ]; /** * @var array */ public static $validationRules = [ 'server_id' => 'bail|required|numeric|exists:servers,id', 'uuid' => 'required|uuid', 'is_successful' => 'boolean', 'name' => 'required|string', 'ignored_files' => 'array', 'disk' => 'required|string', 'sha256_hash' => 'nullable|string', 'bytes' => 'numeric', ]; /** * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function server() { return $this->belongsTo(Server::class); } }